gpt4 book ai didi

php - 为什么 Bootstrap 4 Glyphicon 不显示

转载 作者:行者123 更新时间:2023-12-03 23:35:47 25 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





Bootstrap 4 - Glyphicons migration?

(10 个回答)


2年前关闭。




我的项目中包含以下引导 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>';

但什么都没有出现。有谁知道为什么?

最佳答案

像这样使用 FontAwesome 图标

@import "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.css";
      <p>
<i class="fa fa-spinner fa-spin"></i>
<i class="fa fa-refresh fa-spin"></i>
<i class="fa fa-cog fa-spin"></i>
</p>
<br>
<p>
<i class="fa fa-quote-left fa-2x pull-left fa-border"></i>
Use a few styles together and you'll have easy pull quotes or a great introductory article icon.
</p>
<br>
<h2>Stacked Icons</h2>
<p>
<span class="fa-stack fa-lg">
<i class="fa fa-square-o fa-stack-2x"></i>
<i class="fa fa-twitter fa-stack-1x"></i>
</span>
fa-twitter on fa-square-o<br>
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-flag fa-stack-1x fa-inverse"></i>
</span>
fa-flag on fa-circle<br>
<span class="fa-stack fa-lg">
<i class="fa fa-square fa-stack-2x"></i>
<i class="fa fa-terminal fa-stack-1x fa-inverse"></i>
</span>
fa-terminal on fa-square<br>
<span class="fa-stack fa-lg">
<i class="fa fa-camera fa-stack-1x"></i>
<i class="fa fa-ban fa-stack-2x text-danger"></i>
</span>
fa-ban on fa-camera
</p>


见代码 Code Link

关于php - 为什么 Bootstrap 4 Glyphicon 不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57782980/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com