<style type="text/css">
<!--
a { color:#000;}
.all{ width:600px; height:200px; clear:left}
.box{ width:192px; height:200px; background:#333333;
display:table-cell;
vertical-align:middle;
text-align:center;
*float:left;
*display: block;
*font-size: 175px;
*font-family:Arial;
}
.box img{ padding:4px; border:1px #cdcdcd solid;
vertical-align:middle;}
-->
</style>
<h1>无规则多张图片的垂直居中排版效果</h1> <h3><a href="http://www.865171.cn">www.865171.cn</a></h3> <div class="all"> <div class="box"> <img src="http://www.865171.cn/images/logo.gif" width="100" height="23" /></div> <div class="box"> <img src="http://www.865171.cn/images/logo.gif" width="60" height="60" /></div> <div class="box"> <img src="http://www.865171.cn/images/logo.gif" width="176" height="104" /></div> </div>
在线演示 源码下载
|
Copyright © www.wangjie.org 2010 All rights reserved. 湘ICP备08102783号 |