手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >兼容ie6浏览器窗口四角固定背景代码分享
兼容ie6浏览器窗口四角固定背景代码分享
摘要:浏览器窗口四角固定背景代码html{_overflow:hidden;/*forie6*/}body{margin:0;padding:0;...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>浏览器窗口四角固定背景代码</title> <style type="text/css"> html{ _overflow:hidden;/*for ie6*/ } body { margin:0; padding:0; _height:100%;/*for ie6*/ _overflow:auto;/*for ie6*/ } .mainbox { position:relative; _position:inherit;/*for ie6*/ margin:20px; display:block; height:2000px; background:#e2e2e2; } .topleft, .topright, .bottomleft, .bottomright { position:fixed; width:100px; height:100px; background-color:#990; _position:absolute;/*for ie6*/ _z-index:-1;/*for ie6*/ } .topleft { left:0; top:0; } .topright { right:0; top:0; } .bottomleft { left:0; bottom:0; } .bottomright { right:0; bottom:0; } </style> </head> <body> <div></div> <div></div> <div></div> <div></div> <div>这里是内容区域填充文字</div> </body> </html>

提示:您可以先修改部分代码再运行

【兼容ie6浏览器窗口四角固定背景代码分享】相关文章:

火狐浏览器和IE的CSS区别

解决跨浏览器兼容的CSS编码准则

浏览器如何判断css优先级

CSS对浏览器的兼容性性处理(IE7,6与Fireofx)

兼容各浏览器:CSS定义PNG透明效果

FireFox浏览器和IE浏览器下CSS的兼容问题

CSS 3实现DIV圆角效果完整代码

兼容好的css透明代码

不同浏览器兼容的CSS编码准则

兼容IE6的图片圆角边框CSS

精品推荐
分类导航