自定义Twitter Bootstrap类名 [英] Customize Twitter Bootstrap Classnames
问题描述
http://getbootstrap.com/customize/
上面的链接,自定义Bootstrap的组件,Less变量和jQuery插件以获得您自己的版本。
Above link, customizes Bootstrap's components, Less variables, and jQuery plugins to get your very own version.
我想知道是否可以通过添加自定义引导程序它的类的前缀,例如:
I am wondering if it's possible to customize bootstrap by adding prefixes to it's classes, for example:
".container" = ".myid_container"
".btn-group" = ".myid_btn-group"
推荐答案
您可以@扩展引导程序类,并在使用sass时随意调用它们。这是信息 http://www.sitepoint.com/sass-semantically-extend- bootstrap /
You can @extend bootstrap classes and call them whatever you want if you are using sass. Here is the info http://www.sitepoint.com/sass-semantically-extend-bootstrap/
但是如果您使用纯bootstrap.css,我不确定是否有办法重命名bootstrap类,除了在文件中重命名它们之外
But if you use plain bootstrap.css I'm not sure if there is a way to rename bootstrap classes except for renaming them in the file.
这篇关于自定义Twitter Bootstrap类名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!