请参阅以下页面:
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 模式下(我需要它的外观)