css宽度和最小宽度

css宽度和最小宽度,css,Css,我将以下样式应用于表格 width: auto; min-width: 98.5%; 当我在chrome浏览器中查看时,div内的表似乎只有包含div的50%左右的宽度。在IE9中,表占据了整个宽度。在Chrome中,当我看到使用F12应用的样式时,两种样式都被应用,并且没有交叉 .containing > table { position: relative; left: 0; margin-right: 0; top: 0; border: 1px solid #DDD; width

我将以下样式应用于表格

width: auto;
min-width: 98.5%;
当我在chrome浏览器中查看时,div内的表似乎只有包含div的50%左右的宽度。在IE9中,表占据了整个宽度。在Chrome中,当我看到使用F12应用的样式时,两种样式都被应用,并且没有交叉

.containing > table {
position: relative;
left: 0;
margin-right: 0;
top: 0;
border: 1px solid #DDD;
width: auto;
min-width: 98.5%;
margin-bottom: 1em;
-webkit-border-bottom-right-radius: 8px;
-webkit-border-bottom-left-radius: 8px;
-moz-border-radius-bottomright: 8px;
-moz-border-radius-bottomleft: 8px;
border-bottom-right-radius: 8px;
border-bottom-left-radius: 8px;
}
html:

<div class="containing">
<table>

</table>
</div>

嘿,我知道你应该定义边界半径,如果你想要边界,不要在表格中定义

我认为您在div中对边界和边界半径的定义如下

住店支票


并根据您的设计进行调整。

可能的重复:顺便说一句,如果您将示例设置得更“最少”,这会有所帮助。例如,边界半径规则与问题无关。这使得其他人更容易帮助你。