固定宽度列和Bootstrap中的流体含量区域

时间:2021-11-26 20:36:05

I want to use Twitter Bootstrap to mix fixed and fluid width columns, exactly like this.

我想使用Twitter Bootstrap来混合固定和流体宽度的列,就像这样。

As you can see, it is trivially easy to do with HTML and CSS. Is there a way to do it using bootstrap only?

正如您所看到的,使用HTML和CSS非常容易。有没有办法只使用bootstrap?

2 个解决方案

#1


14  

There is no way in Bootstrap to prevent from fluid style. You have to write new class and use it in the same div.

Bootstrap中无法防止出现流畅的风格。你必须编写新的类并在同一个div中使用它。

<div class="span4 newclass">

.newclass{width:200px!important}

#2


1  

You'll have to create a span that contains a fixed-width column absolutely positioned to the left or to the right and then add another column with a margin wide enough to fit the fixed column.

您必须创建一个包含绝对位于左侧或右侧的固定宽度列的跨度,然后添加另一列宽度足以适合固定列的列。

#1


14  

There is no way in Bootstrap to prevent from fluid style. You have to write new class and use it in the same div.

Bootstrap中无法防止出现流畅的风格。你必须编写新的类并在同一个div中使用它。

<div class="span4 newclass">

.newclass{width:200px!important}

#2


1  

You'll have to create a span that contains a fixed-width column absolutely positioned to the left or to the right and then add another column with a margin wide enough to fit the fixed column.

您必须创建一个包含绝对位于左侧或右侧的固定宽度列的跨度,然后添加另一列宽度足以适合固定列的列。