如何平铺整个页面_html/css_WEB-ITnose
程序员文章站
2023-12-24 23:47:57
...
我做了一个小小的测试但是不成功,想让导航条横铺整个浏览器页面图片如下
就是红色那部分没有到浏览器边缘。
css设置如下:
分别对应三部分,我应该添加什么进去才能达到效果
...
就是红色那部分没有到浏览器边缘。
css设置如下:
#top_01 { background:#f7f7f7; height: 30px; border-bottom:1px solid #eee;}#top_02{ height:100px;}#top_03{background: none repeat scroll 0% 0% rgb(227, 58, 61); background-color: rgb(227, 58, 61); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; background-clip: border-box; background-origin: padding-box; background-size: auto auto;height: 35px;}div{margin:0;padding:0;}#head { width: 100%; height: auto; margin: 0px auto; background-repeat: repeat-x; background-position: center 152px;}
分别对应三部分,我应该添加什么进去才能达到效果
回复讨论(解决方案)
*{ margin:0; padding:0;}
...
body{
margin:0;padding:0;
}
推荐阅读
-
如何平铺整个页面_html/css_WEB-ITnose
-
Symfony2安装时欢迎页面CSS混乱的解决方案_html/css_WEB-ITnose
-
在html里面用submit方式提交表单后,在另一个页面如何将值取出来_html/css_WEB-ITnose
-
为何页面内容和网页边缘有空隙_html/css_WEB-ITnose
-
linux定时任务访问页面代替quartz集群_html/css_WEB-ITnose
-
如何用CSS控制字的间距_html/css_WEB-ITnose
-
CSS如何让两列div并排显示_html/css_WEB-ITnose
-
HTML页面如何象ASP一样接受参数_javascript技巧
-
css如何将新闻列表前面的点去掉_html/css_WEB-ITnose
-
【原】移动web页面使用字体的思考_html/css_WEB-ITnose