Home >Web Front-end >HTML Tutorial >div layer overlap posion:absolute_html/css_WEB-ITnose
divcss div layer overlap div css div layer overlap
<body><!--第一部分--> <div style="position:absolute;left:0px;width:100%;height:200px;"> <img src="bg_test123.jpg" width="100%"height="200"/> </div><!--第二部分--> <div style="float:left;width:300px;height:400px;"> <img src="bg_test123.jpg"/ style="width:300px;height:400px;"> </div> <div style="float:left;width:300px;height:400px;"> <img src="bg_test123.jpg"/ width="300" height="400"> </div> <div style="float:left;width:300px;height:400px;"> <img src="bg_test123.jpg"/ width="300" height="400"> </div> </body>
Add: position:relative to the second part of the div
Thank you, thank you very much for your help!