<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="css/huawei.css">
</head>
<body>
<div class="E">
<!-- <div class="R"></div>
<div class="W"><div class="Q"></div></div> -->
<div class="W"></div>
<div class="W"></div>
<div class="W"></div>
</div>
</body>
</html>
.E{
width: 240px;
height: 500px;
background-color: black;
border: 5px solid #4a4a4a;
border-radius: 35px;
background-image: url(../img/phone1.png);
text-align: center;
margin: 0 auto;
}
.W{
width: 16px;
height: 16px;
background-color: #595959;
margin: 0 auto;
margin-top: 3px;
border-radius: 8px;
display: inline-block;
}
/* .Q{ 第一次自己尝试的失败之作
width: 16px;
height: 16px;
background-color: #595959;
margin-left: 20px;
margin-top: 0px;
border-radius: 8px;
float: left;
}
.R{
width: 16px;
height: 16px;
background-color: #595959;
margin-left: 92px;
margin-top: 3px;
border-radius: 8px;
float: left;
} */
第一次尝试,注意代码中的注释,class第一次尝试顺序是QWER能完成但是太繁琐,把注释除去就是修改过后的简洁版