首页 > Web开发 > 详细

div模拟滚动条当div宽度小于18时滚动条不滚动

时间:2016-01-16 00:53:45      阅读:187      评论:0      收藏:0      [点我收藏+]
IE浏览器,div模拟滚动条,div宽度小于18 滚动条不滚动

环境 win7 IE 10

代码:

复制代码
代码如下:

<!DOCTYPE html>
<html>
<head>
<title>scroll</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<div style="border:1px solid red; width: 18px;height: 200px;overflow-y:auto ;">
<div style="width:1px;height:600px;"></div>
</div>
<div style="border:1px solid red; width: 17px;height: 200px;overflow-y:auto ;">
<div style="width:1px;height:600px;"></div>
</div>
</body>
</html>

IE10浏览器运行在 IE7,8,9,10模式下,测试用div模拟滚动条时,如果div宽度小于18px时,单击滚动条有问题,滚动条不能正常滚动。

div模拟滚动条当div宽度小于18时滚动条不滚动

原文:http://www.jb51.net/css/115521.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!