<div>内部填充不会清零</div>

时间:2013-02-08 03:15:59

标签: html padding

我无法移除包含另一个的填充。我的网站是www.housecallgeek.com/index.html。 div元素有左边距和右边距,我无法删除。源代码在

之下
<style>


html{height:100%; background: url("http://www.housecallgeek.com/gdb.png") no-repeat center center fixed
; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: 100% 100%;
}

div.title{height:20%; width:100%; border-style:solid; border-width:0; margin:auto;


background: url("cropped merged finished smaller.png") no-repeat 49% 4% fixed;
    -webkit-background-size: 63%;
    -moz-background-size: 63%;
    -o-background-size: 63%;
    background-size: 63%;
}

body {margin: 0px; padding: 0px; border: 0px; height: 100%;}

div.main{border:0px; margin:0px; padding:0px; width:80%; min-height:76%; border-style:solid; border-width:1;margin:auto;



background: url("md.png") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: 100% 100%;

box-sizing: border-box;
ms-box-sizing: border-box;
webkit-box-sizing: border-box;
moz-box-sizing: border-box;
}

img.m{margin: 0px; padding: 0px; border: 0px; width: 100%; height:100%;}

div.menu{margin:0px; padding:0px; min-width:100%; height:50px; display:box ;}

</style>

1 个答案:

答案 0 :(得分:1)

你的形象m.png似乎有透明的一面。尝试干净的图像裁剪。