html 中 图片和文字一行 垂直居中对齐

时间:2015-05-30 19:49:41   收藏:0   阅读:516

技术分享

技术分享效果:   技术分享
 
代码:<div><img src=‘img/point_icon.png‘ width=‘35px‘ height=‘35px‘ style=‘float: left;‘/><span style=‘height:35px;line-height:35px;‘>[标记]</span></div>
注意:img的heigth 必须和sapn的height相同,span的height,line-height必须相同,img必须设置float:left

原文:http://www.cnblogs.com/manliu/p/4540843.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!