Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html IE9中最大高度滚动DIV的问题_Html_Internet Explorer 9_Css - Fatal编程技术网

Html IE9中最大高度滚动DIV的问题

Html IE9中最大高度滚动DIV的问题,html,internet-explorer-9,css,Html,Internet Explorer 9,Css,我在IE9中看到滚动DIV的奇怪行为。我正在DIV上使用max height CSS标记。当我将文本输入到DIV中包含的输入框中时,DIV会变得更高。只有当输入框超出页面的右边缘时,才会发生这种情况 若要重新创建,请缩小浏览器,使输入框超出屏幕的右边缘,水平滚动条显示在DIV上。然后将文本输入任何一个输入框。每按一次键,DIV就会变得更高 我把CSS或HTML搞砸了,还是这是IE9的错误 谢谢 <head> <style type="text/css"> .ScrollT

我在IE9中看到滚动DIV的奇怪行为。我正在DIV上使用max height CSS标记。当我将文本输入到DIV中包含的输入框中时,DIV会变得更高。只有当输入框超出页面的右边缘时,才会发生这种情况

若要重新创建,请缩小浏览器,使输入框超出屏幕的右边缘,水平滚动条显示在DIV上。然后将文本输入任何一个输入框。每按一次键,DIV就会变得更高

我把CSS或HTML搞砸了,还是这是IE9的错误

谢谢

<head>
<style type="text/css">
.ScrollTest
{
    max-height: 200px;
    overflow:auto;
}
</style>
</head>
<body>
<div class="ScrollTest">
    <table class="ScrollTest">
        <tr>
            <td><input /></td>
            <td><input /></td>
            <td><input /></td>
            <td><input /></td>
            <td><input /></td>
            <td><input /></td>
            <td><input /></td>
        </tr>
    </table>
</div>
<div>Second DIV</div>  
</body>
</html>

.滚动测试
{
最大高度:200px;
溢出:自动;
}
第二组

这似乎是一个bug,没有理由这样做。我可以用
overflow-x:scroll
替换
overflow:auto
来解决这个问题

看一看:

这确实很奇怪!好奇修复。Live:(别忘了用IE9IE10打开对我来说很好。但是IE9就像OP说的那样肯定是一个bug。奇怪的是,如果在创建新空间后调整窗口大小,它们将消失。感谢您确认这是一个bug。