如何移除身体与相关定位DIV之间的距离,如Image is Here
所示
#rela {position:relative; width:100%; height:500px; clear:both; top:0; right:0; left:0;}
#absol {position:absolute; width:70%; height:400px; clear:left; float:left;}
#absol_2 {position:absolute; width:20%; height:400px; clear:riht; float:right;}
<div id='rela' style='background:green;'>
<div id='absol' style='background:red;'></div>
<div id='absol_2' style='background:purple;' ></div>
</div>
答案 0 :(得分:0)
在你的css中使用它:
body{margin:0; padding:0}