实用的CSS图片垂直居中

[code lang="css"]
.pic{
display:table-cell;/* for not IE browsers*/
text-align:center;
vertical-align:middle;
height:170px;
width:160px;
+display:block;
+font-size:144px;/* 这里是height*0.9,估计在0.9左右比较接近FF和Opera*/
+font-family:"Times New Roman", Times, serif;/* Don't miss here!*/
}
.pic img{vertical-align:middle;}
[/code]