如何使用bootstrap“均匀”分配奇数列?(How to distribute odd number of columns “evenly” using bootstrap ?)
我必须使用bootstrap响应css显示日历(即7)的所有工作日均匀分布在12跨行中。
我努力了
<div class ="span12"> <div class="span2"> Monday </div> ....... ...... <div class="span2"> Sunday </div> </div>这将超过12跨度并将最后一列包装到下一行。
谁知道这样做的正确方法是什么?
谢谢!
I have to display all the week days of the calendar (which is 7) evenly distributed in a 12 span row using bootstrap responsive css.
I have tried
<div class ="span12"> <div class="span2"> Monday </div> ....... ...... <div class="span2"> Sunday </div> </div>This will go over the 12 span and wraps the last column to the next row.
Anyone knows what's the right way to do this ?
Thank you!
最满意答案
谢谢! 我只是增加了.row-fluid span2的百分比宽度,并将其创建为一个单独的类。 有效!
.row-fluid .daySpan { width: 14.192978723404255%; *width: 14.192978723404255%; }Thank you! I just increased the percentage width of the .row-fluid span2 and created it as a separate class. It worked!
.row-fluid .daySpan { width: 14.192978723404255%; *width: 14.192978723404255%; }更多推荐
发布评论