正文和它的元素之间有一些空间。我怎样才能删除空间? 看这张图 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>
最佳答案
在你的 CSS 中使用它:
body{margin:0; padding:0}
关于html - 删除主体与其元素之间的空间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40683907/