如何在ui.bootstrap.rating中使用Font Awesome? 我发现,当我添加state-on="'fa-star'" state-off="'fa-star-o'"
和更改class="glyphicon"
到class="fa"
在ui-bootstrap-tpls它的作品。 但我想有一个更自定义的方式来更改图标的类。在ui.bootstrap.rating中使用Font Awesome
1
A
回答
0
是的,因为你正在设置state-off
和state-on
是他们的推荐方式。如果您要在网页上获得很多评分,我只需创建一个自定义模板并覆盖该模板。 Here is a post custom templates
1
我有字体真棒,所以不想包括字形。
uib.bootstrap版本:1.3.3 - 2016年5月22日利用有限Glyphicons,所以这是我加入到我的CSS
.glyphicon {
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.glyphicon-star:before {
content: "\f005";
}
/**
copied from
.fa-star:before {
content: "\f005";
}
*/
.glyphicon-star-empty::before {
content: "\f006";
}
.glyphicon-chevron-right:before {
content: "\f054";
}
.glyphicon-chevron-left:before {
content: "\f053";
}
.glyphicon-chevron-up:before {
content: "\f077";
}
.glyphicon-chevron-down:before {
content: "\f078";
}
即添加CSS从字体真棒4.6.3适当glyphicon名称
现在我不知道这段代码是否会破解Font Awesome的版本
相关问题
- 1. font-awesome不能在MVC5中使用bundleconfig
- 2. Font Awesome into WinForms
- 3. Font-awesome Less CSS
- 4. Bootstrap 4 Font Awesome
- 5. Font-Awesome ExtJS ActionColumn
- 6. Android App Font Awesome
- 7. Font Awesome not loading
- 8. Font Awesome not filling menu
- 9. Font awesome - undefined变量
- 10. Bootstrap Font Awesome和IE8
- 11. ActionBar setIcon with Font-Awesome
- 12. Font Awesome extras.less变量
- 13. Font Awesome在子目录
- 14. 只为使用的类优化Font Awesome
- 15. 我们如何使用FONT AWESOME by css
- 16. 使用font-awesome作为HTML内容
- 17. “font-awesome”和“font-awesome-rails”有什么区别?
- 18. 如何在sap.ui.core.Icon中显示glyphicon/font-awesome?
- 19. Orbeon使用font-awesome(@ font-face不加载本地托管字体)
- 20. 在CSS中使用Kendo Grid按钮中的Font Awesome
- 21. 如何导入node.js中的font-awesome以在react.js中使用?
- 22. Font Awesome“Cog”旋转不均
- 23. Font Awesome vs Glyphicons in Twitter Bootstrap
- 24. Bootstrap 4兼容Font Awesome
- 25. Font Awesome IE 7/8支持
- 26. 什么是Font-Awesome内测?
- 27. Bootstrap 3&Font-Awesome 4 colorchange
- 28. Font Awesome display有问题吗?
- 29. 如何在Font Awesome中使用数据属性?
- 30. 是否可以在Mapbox标记中使用Font Awesome图标?