Can we use glyphicons in Bootstrap 4?

余生颓废 提交于 2019-12-25 00:37:50

问题


I have been using glyphicons with bootstrap 3 and now when I update the cdn to bootstrap 4, they don't work.


回答1:


From what I have seen, Bootstrap dropped support of them. however, you can always add it to your website manually.

There are files or CDN's for it so you should not have any problems adding it to your website.

There are also loads of alternatives like Material Icons by Google or FA.

Download Glyphicons




回答2:


glyphicons have been dropped support from bootstrap 4 and they worked with bootstrap 3. You can use use font-awesome instead. Migrating to font-awesome is easier: you can include the cdn

<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">

or download it from https://fontawesome.com/v4.7.0/get-started/ and replace glyphicon glyphicon- with fa fa- using any text editor.



来源:https://stackoverflow.com/questions/51970966/can-we-use-glyphicons-in-bootstrap-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!