javascript - 引导表 4 图标未正确显示
问题描述
我在我的烧瓶应用程序中制作了一个引导表,其中包含文档中显示的一些扩展。一切正常,除了不显示图标的按钮,使它们对用户不友好。问题在浏览器(谷歌浏览器和 safari)以及应用程序中是一致的,无论它是在本地部署还是在云上(应用程序引擎)
这是我的标题:
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Walrus</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link href="https://unpkg.com/bootstrap-table@1.15.5/dist/bootstrap-table.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.15.5/dist/extensions/sticky-header/bootstrap-table-sticky-header.css">
<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.15.5/dist/extensions/fixed-columns/bootstrap-table-fixed-columns.css">
<link rel='stylesheet' type=text/css href="{{ url_for('static', filename='styles.css') }}"/>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://unpkg.com/tableexport.jquery.plugin/tableExport.min.js"></script>
<script src="https://unpkg.com/tableexport.jquery.plugin/libs/jsPDF/jspdf.min.js"></script>
<script src="https://unpkg.com/tableexport.jquery.plugin/libs/jsPDF-AutoTable/jspdf.plugin.autotable.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" ></script>
<script src="https://unpkg.com/bootstrap-table@1.15.5/dist/bootstrap-table.min.js"></script>
<script src="https://unpkg.com/bootstrap-table@1.15.5/dist/extensions/toolbar/bootstrap-table-toolbar.min.js"></script>
<script src="https://unpkg.com/bootstrap-table@1.15.5/dist/extensions/export/bootstrap-table-export.min.js"></script>
<script src="https://unpkg.com/bootstrap-table@1.15.5/dist/extensions/multiple-sort/bootstrap-table-multiple-sort.js"></script>
<script src="https://unpkg.com/bootstrap-table@1.15.5/dist/extensions/fixed-columns/bootstrap-table-fixed-columns.js"></script>
<script src="https://unpkg.com/bootstrap-table@1.15.5/dist/extensions/sticky-header/bootstrap-table-sticky-header.min.js"></script>
</head>
这是生成表格的脚本:
<div class="main">
<table class='table table-hover table-bordered'
id="table"
data-search='true'
data-advanced-search="true"
data-id-table="advancedTable"
data-show-columns='true'
data-show-multi-sort="true"
data-toolbar="#toolbar"
data-show-export="true"
>
</table>
<script>
$('#table').bootstrapTable({
columns: [
{% for c in my_cols %}
{
field: '{{c}}',
title: '{{c}}',
sortable: true
},
{% endfor %}
],
data: {{my_records|safe}},
pagination: true,
sortable: true,
fixedColumns: true,
fixedNumber: 5,
width: "900"
})
</script>
这是我的按钮的样子:快照
知道如何解决吗?提前致谢!
解决方案
推荐阅读
- javascript - 为什么从字段中删除所有文本时会删除 p(段落)标签?
- botframework - 如何使用 Bot Framework composer 重命名机器人
- c++ - 如何在 MacOS 上获取文件类型的图标?
- python - 验证基于另一个数据帧的数据帧?
- gerrit - Gerrit 总是更新父级未合并提交补丁集
- ms-access-2010 - 是否可以重新查询使用 Docmd.openform "nameform",,,,acformAdd 打开的表单?
- javascript - 对象在下一个 js 中作为 React 子错误无效
- python - 调用后Python设置类变量
- javascript - PDF下载按钮
- magento - 可用于创建订单的磁电机 2 数量与产品实际数量不同