下面是使用html和css设置的圆形头像效果的实例,大家可以直接拿去使用或参考,其实主要代码就是border-radius这一行
效果:
代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
</head>
<body>
<div style="width:400px; height:90px; padding-left:10px; padding-top:10px; background-color:blue;border-radius:49px 0px 49px 0px ;">
<div style="width: 74px; height: 74px; float:left; border-radius: 50%; border: 3px solid #eee; overflow: hidden;">
<img src="http://www.duanlonglong.com/images/defaultpic.gif" width="80" height="80" />
</div>
<div style="float:left; margin-left:50px; color:white;">
<br />
<span>1578****854</span>
<br />
<span>CSS3圆形头像</span>
</div>
</body>
</html>