【发布时间】:2020-01-07 00:40:06
【问题描述】:
我的项目中包含以下引导 CDN
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
我尝试在我的 php 脚本中以以下方式回显字形图标
echo '<div class="col-sm"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>'.$deviceName.'</div>';
但是什么都没有出现。有谁知道为什么?
【问题讨论】:
-
Bootstrap 4 删除了 Glyphicons 图标字体
-
你至少需要 Bootstrap 3.4.0 这样的字形图标
-
使用字体真棒图标而不是引导字形图标
标签: php html bootstrap-4 glyphicons