如何使用bootstrap“均匀”分配奇数列?(How to distribute odd number of columns “evenly” using bootstrap ?)

编程入门 行业动态 更新时间:2024-10-27 12:28:36
如何使用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%; }

更多推荐

本文发布于:2023-08-07 08:54:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1463669.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数列   如何使用   均匀   分配   bootstrap

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!