【发布时间】:2013-05-16 17:23:43
【问题描述】:
请看以下页面:
http://www.judsondesigns.com/Demos/jscroller/index.html
如果您在 IE 中注意到,它会导致滚动。其他所有浏览器都可以。为什么IE会导致滚动?我该如何解决这个问题?
谢谢
贾德森
这是我正在使用的代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<style>
html, body{
height:100%;
width: 100%;
margin: 0px;
padding: 0px;
}
</style>
</head>
<body>
<div style="display:table; width: 100%; height:100%;">
<div style="display: table-row; background: red">test</div>
<div style="display: table-row">
<div style="display: table-cell; height:100%; width:100%;overflow: hidden ">
<div style=" height:100%; width:100%; overflow:hidden; background: #06F">test123
</div>
</div>
</div>
<div style="display:table-row; background: red;">test</div></div>
</div>
</body>
</html>
和正常IE10模式下的图片:
在 Quirks 模式下(我需要它的外观)
【问题讨论】:
标签: javascript html css