2 回答

TA貢獻(xiàn)1848條經(jīng)驗(yàn) 獲得超6個(gè)贊
像這樣使用 FontAwesome 圖標(biāo)
@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>

TA貢獻(xiàn)1821條經(jīng)驗(yàn) 獲得超5個(gè)贊
Bootstrap 4 沒有自己的圖標(biāo)庫,BS4 不支持 Bootstrap 3 中的 Glyphicons。但是,有許多免費(fèi)的圖標(biāo)庫可供選擇,例如 Font Awesome 和 Google Material Design Icons。
- 2 回答
- 0 關(guān)注
- 311 瀏覽
添加回答
舉報(bào)