这里溢出-x是两个样本:表的内部字段集
<div class="content-wrapper">
<div class="gridwrapper">
<table>
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
http://jsfiddle.net/8wzLzf09/1/
溢出-X正常工作时,另一格
<div class="content-wrapper">
<fieldset>
<legend></legend>
<div class="gridwrapper">
<table>
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</div>
</fieldset>
</div>
http://jsfiddle.net/8wzLzf09/2/
表里面的父DIV表的父项时,Overflow-x无法正常工作div里面的fieldset,它允许扩大表格的宽度
它是什么原因呢?任何人都知道如何解决它?
我需要的字段集和gridwrapper的100%的宽度,大小必须仅基于主要内容的包装
感谢
你可以做到这一点使用jQuery http://jsfiddle.net/victor_007/eg4tw/3/ – 2014-10-03 12:22:20
@VitorinoFernandes可以有很多主要内容,包装内的div,像这样http://jsfiddle.net/eg4tw/5/是否有可能做到这一点与出使用jQuery? – Sibay 2014-10-03 12:29:37
m不知道css – 2014-10-03 12:48:50