<div>标签代表块,区域,以下代码是<div>标签的嵌套。
<html>
<head><title> 七彩剑殇</title>
<style type="text/css">
.main{width:1400px;
height:800px;
background-image:url(222.jpg);};
.sword{float:left;
width:250px;
height:165px;
background-image:url(3.jpg);};
.role{float:right;
width:550px;
height:327px;
background-image:url(2.jpg);};
};
</style>
</head>
<body>
<div class="main">
<div class="sword">
</div>
<div class="role">
</div>
</div>
</body>
</html>
以上代码的效果图如下(图片自己可以改动下载)