<style>
body,div {
padding: 0;
margin: 0;
}
.to {
width: 100px;
height: 100px;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
margin-left: -50px;
margin-top: -50px;
}
.to1 {
width: 104px;
height: 104px;
border-radius: 50%;
background-color: white;
position: relative;
}
.to2 {
width: 104px;
height: 104px;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
margin-left: -52px;
margin-top: -52px;
}
.to3 {
width: 106px;
height: 106px;
border-radius: 50%;
background-color: aqua;
position: relative;
}
</style>
<body>
<br>
<div style="width:200px" align="center">
<div class="to3" align="center">
<div class="to2" align="center">
<div class="to1" align="center">
<img class="to" alt="aaa" src="images/aaa.jpg">
</div>
</div>
</div>
</div>
</body>
自己写的一段代码,感觉不是太好用。。。。。
图: