大佬教程收集整理的这篇文章主要介绍了jquery-ui – 使用Font-Awesome扩展jQuery UI图标,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
jQuery UI示例:
$("#muteAll").button({ text: false,icons: { priMary: "ui-icon-volume-on" } });
Font-Awesome替换/扩展示例:
$("#muteAll").button({ text: false,icons: { priMary: "icon-volume-up" } });
我最接近的是:
.ui-icon[class*=" icon-"] { BACkground: none repeat scroll 0 0 transparent; left: 0; margin-left: 1px; text-indent: 0; }
/* Allow Font Awesome Icons in lieu of jQuery UI and only apply when using a FA icon */ .ui-icon[class*=" icon-"] { /* Remove the jQuery UI Icon */ BACkground: none repeat scroll 0 0 transparent; /* Remove the jQuery UI Text Indent */ text-indent: 0; /* Bump it up - jQuery UI is -8px */ margin-top: -0.5em; } /* Allow use of icon-large to be properly aligned */ .ui-icon.icon-large { margin-top: -0.75em; } .ui-button-icon-only .ui-icon[class*=" icon-"] { /* Bump it - jQuery UI is -8px */ margin-left: -7px; }
演示jsfiddle
以上是大佬教程为你收集整理的jquery-ui – 使用Font-Awesome扩展jQuery UI图标全部内容,希望文章能够帮你解决jquery-ui – 使用Font-Awesome扩展jQuery UI图标所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。