DIV CSS layout
Draw it yourself in dw, or choose a similar layout and change it yourself
div embedded Set float
It should be easy if the layers are clearly distinguished. Divide it up and down, then divide the top left and right sides, then divide the top right side up and down again. Divide it this way. It is necessary to control the float
The height and width of each frame should be set accurately. Wouldn't it be better if everything is float
As a newbie, if you want me to do it, use 3 divs, all using float: left; then put the small div into it. The small div also uses float: left
Code:
<html> <head> <title>图片布局</title> </head> <body> <div style="float:left;width:100%;height:100%"> <div style="float:left;width:100%;height:66.66%;"> <img style="float:left;width:50%;height:100%;" src="mr.jpg"/> <div style="float:right;width:50%;height:100%;"> <img style="float:left;width:100%;height:50%;" src="mr.jpg"/> <div style="float:right;width:100%;height:50%;"> <img style="float:left;width:50%;height:100%;" src="mr.jpg"/> <img style="float:right;width:50%;height:100%;" src="mr.jpg"/> </div> </div> </div> <div style="float:left;width:100%;height:33.33%;"> <img style="float:left;width:75%;height:100%;" src="mr.jpg"/> <img style="float:right;width:25%;height:100%;" src="mr.jpg"/> </div> </div> </body></html>
Rendering sticker Wrong, this one: