2011年9月27日

圖片垂直水平置中CSS

table中用 valign:middle; text-align:center;

.gooddeal .goodimgbase{
background-color:#F6F6F6;
width:486px;
height:360px;
overflow:hidden;
text-align:center;
/*firefox chrome*/
line-height:360px;
white-space:nowrap;
/*IE*/
*font-size:288px;
*font-family:Arial;
}
.gooddeal div.goodimgbase:after{
content: ".";
font-size:1px;
margin-left: -1px;
opacity:0;
}