idt eat .com ask alt ges src ava
如图所示:
html 的代码:
- <dt>
- <span></span>
- <div class="avatar">
- <img src="../images/110x110.jpg">
- </div>
- </dt>
CSS 的代码:
- width: 100 % ;
- height: 16px;
- background: url("../images/ask_zj_icon.png") no - repeat;
- background - size: 100 % ;
- position: absolute;
- bottom: 2px;
css 应用 给头像添加标签
来源: http://www.bubuko.com/infodetail-2294835.html