背景100%平铺浏览器缩小背景显示不全bug
发布时间:08-13 来源:云动网络 作者:云动 点击:
次
我们在做网站网页有时会遇到背景宽度为100%平铺时,浏览器缩小后背景显示不全,解决方法为:在width=100%;后面加个min-width:1200px;1200px是你的网站宽度。
例如:#wp_100{background:url(../img/footerbj.jpg) repeat-x; background-position:center bottom;width:100%;min-width:1200px; margin:0 auto; padding:0; }
上一篇:css中的八种长度单位_CSS教程
下一篇:返回列表
相关阅读
我们在做网站网页有时会遇到背景宽度为100%平铺时,浏览器缩小后背景显示不全,解决方法为:在width=100%;后面加个min-width:1200px;1200px是你的网站宽度。
例如:#wp_100{background:url(../img/footerbj.jpg) repeat-x; background-position:center bottom;width:100%;min-width:1200px; margin:0 auto; padding:0; }
相关阅读
栏目导航