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

效果:   
 
代码:<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
posted @ 2015-05-30 19:17  lavel  阅读(2974)  评论(0编辑  收藏  举报