- HTML code
<div style=" background:#ccc;"> <div style="margin:0 auto; width:600px; background:#FF66CC;"> 啦啦啦 </div> </div>
求前辈指导,两个div框框顶部为什么不重合 空当是怎么出来的
------解决方案--------------------
你放个全角空格在哪里当然不重合了。
<div style=" background:#ccc;"> <div style="margin:0 auto; width:600px; background:#FF66CC;"> 啦啦啦 </div> </div>