<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin:0;
padding: 0;
}
.one{
width:100%;
height:40px;
background-color: #333;
opacity:0.8;
line-height: 40px;
text-align: center;
/* 用空格进行处理,此处需寻求帮助 */
}
.two{
text-align: center;
}
.three{
clear:right;
float:right;
}
.four{
position: absolute;
height:600px;
width:800px;
top:300px;
right:600px;
background-color: aqua;
}
.five{
height:600px;
width:600px;
background-color: #333;
float:right;
clear:both;
/* 这里莫名被顶上去了,需要处理 */
}
li{
list-style:none;
}
</style>
</head>
<body>
<div class="one">
<div>
one|two|three|four|five|six 登录|注册|消息通知|购物车
</div>
</div>
<img src="./code.jpg">
<!-- 随便找了张图,就是对应商标 -->
<!-- 位置问题未得到妥善处理 -->
<div class="two">
Xiaomi手机 Redmi手机 电视 笔记本 平板 家电 路由器 服务中心 社区
</div>
<input type="text" class="three">
<div class="four">
<ul>
<li>11111</li>
<li>11111</li>
<li>11111</li>
<li>11111</li>
<li>11111</li>
<li>11111</li>
<div class="five"></div>
</ul>
</div>
</body>
</html>
准备向老师请教。。。。。