div、css圆形头像

下面是使用html和css设置的圆形头像效果的实例,大家可以直接拿去使用或参考,其实主要代码就是border-radius这一行 <!DOCTYPE html><html><head><meta charset="utf-8"...

下面是使用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>

attachments-2020-07-MM7FcbWN5f0d611fe8f82.png

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
王凯
王凯

92 篇文章

作家榜 »

  1. admin 651 文章
  2. 粪斗 185 文章
  3. 王凯 92 文章
  4. 廖雪 78 文章
  5. 牟雪峰 12 文章
  6. 李沁雪 9 文章
  7. 全易 2 文章
  8. bngvitmrbj 0 文章