我正在使用 Twitter Bootstrap,我正在尝试获得标题中描述的布局。
请指教。
最佳答案
你可以尝试这样的事情:
<div class="row-fluid">
<div class="span12">
<div class="fixed_width"></div>
<div class="variable_width"></div>
</div>
</div>
和 CSS
div.fixed_width {
width: 300px;
// or try with: "float:left;" too
}
div.variable_width {
overflow: hidden;
// if you use float:left in the other, don't use overflow here, but try with: "width:100%;"
}
在这里你可以找到一个更通用的例子(http://jsfiddle.net/glee/6Cavr/)
关于css - twitter bootstrap 中的双列布局,第一列宽度固定,第二列宽度填充其余空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17295533/