苹果,谷歌浏览器对设置了100%的DIV层宽度不能自适应,部分网页被隐藏,解决办法
yqxbc 发布时间:08-29 来源:一起学编程 浏览:4次

最近客户反映网页在Ipad上无法正常访问,研究再三,发现问题

因为外层container宽度为100%, google和apple无法自适应,需要加入以下属性

.container{ width:100%; height:100%; overflow:hidden; zoom:1; background:url(../img/nav_bg.jpg) repeat-x 0px 153px;min-width:1250px;}

针对IE6需要加入以下代码

.container{ width:100%; height:100%; overflow:hidden; zoom:1; background:url(../img/nav_bg.jpg) repeat-x 0px 153px;min-width:1250px;

_width:e­xpression((documentElement.clientWidth < 1250) ? "1250px" : "100%" );}

如果你有好的win10资讯或者win10教程,以及win10相关的问题想要获得win10系统下载的关注与报道。
欢迎加入发送邮件到657025171#qq.com(#替换为@)。期待你的好消息!