Tweaking Bootstrap 2.0 for Semantic Markup

后端 未结 8 1668
耶瑟儿~
耶瑟儿~ 2020-12-14 16:15

Version 2 of Twitters \"Bootstrap\" UI framework was released today. While I find it very handy, I dislike how non-semantic it is.

I\'d rather avoid setting class

相关标签:
8条回答
  • 2020-12-14 17:05

    Less provides mixins, meaning that if you write your stylesheets in Less rather than CSS, you can include the Bootstrap classes in your stylesheet rather than in your HTML.

    Please stop embedding Bootstrap classes in your HTML!

    0 讨论(0)
  • 2020-12-14 17:08

    Disagree with the response that you should "just give up" and "do it the easy way" — manipulating classes in markup not the easy way. For example: When your site is viewed on a mobile phone, what is class="span4"?

    I use https://github.com/vwall/compass-twitter-bootstrap because it seems to be the most frequently updated port of Twitter Bootstrap to Sass.

    This library is great because it is prefixed to avoid mixin name conflict. It's easy to use for prototyping and then you can quickly grow out of it — just like bootstrap was meant to be used.

    0 讨论(0)
提交回复
热议问题