Tweaking Bootstrap 2.0 for Semantic Markup

后端 未结 8 1679
耶瑟儿~
耶瑟儿~ 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 16:52

    For the new Bootstrap 2.1 (maybe works on 2.0):

    .content{ .makeRow();
       .main-content{ .makeColumn(5,2);} // (size,offset)
       .sidebar{ .makeColumn(3); }
    }
    

    Finally works!

提交回复
热议问题