解决办法:为最外层div加上width:expression(document.body.clientWidth <= 1000? "1000px": "auto")min-width:1000px因为ie6不支持min、max 所以加上width:expression(document.body.clientWidth <= 1000? "1000px": "auto")
这是由于不同浏览器会有不同的默认页边距造成的。看截图LZ用的好像是IE6。1、IE默认为10PX,通过body的margin属性设置
2、FF默认为8PX它,通过body的padding属性设置
解决方法:
body{padding:0pxmargin:0px}
因为浏览器并不知道您footer的宽度和高度的比,就如同用一张背景图想让body标签 背景 自适应 整个屏幕一样不可能。只有定义footer的宽度100% 并且 position为fixed 才行的。
background-size: 100% 100%背景充满
cover: 缩放图像的最小值,其宽度和高度都能放入内容区域 【用这个】
contain:缩放图像的最大值,其宽度和高度都能放入内容区域