我有包括细胞输入表的Internet Explorer 9,选择/取消错误
有奇怪的错误(在IE9中,我并没有在其他测试IE浏览器版本)之间移动后(或之后选择/取消选择)表 - 表的父div开始扩大,如果溢出:自动;属性设置好的,如果有水平滚动
它的样子:
Link to sample尝试在表中选择一些行
HTML:
<div class="maindiv">
<div class="gridwrapper">
<table>
<thead>
<tr>
<th>Column</th>
<th>Column</th>
<th>Column</th>
<th>Column</th>
<th>Column</th>
<th>Column</th>
<th>Column</th>
<th>Column</th>
<th>Column</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
</tr>
<tr>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
<td><input type='text' value='Cell'/></td>
</tr>
</tbody>
</table>
</div>
<div class="bottomdiv">
<label>AddRow</label>
</div>
</div>
CSS:
.gridwrapper {
max-height: 150px;
overflow: auto;
border: 1px solid black;
}
.maindiv {
width: 400px;
border: 1px solid gray;
}
table {
width: 100%;
}
有人知道如何解决这个问题?
不幸的是我不能重现这个bug。 – dude 2014-10-29 20:18:46