这在IE 7中的boxmodel问题是最好的方式来处理它?
http://dev.harveys.co.uk/clients/
客户{margin-right:-20px; }
clients .client {float:left; 背景:#9d9fa2; 宽度:190px; margin:0 8px 8px 0; }
clients .client .inner {min-height:80px; }
.inner {padding:10px; }
客户.last-child {margin-right:0; }
clients .client img {margin-bottom:5px; border:1px solid #aaa; }
<div id="page">
<div id="clients" class="clearfix">
<?php $count = 0;?>
<?php query_posts('category_name=Clients&showposts=20&orderby=297,299,308,302,304'); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php $count++; ?>
<div class="client <?php if ( $count % 3 == 0 ){ echo "last-child"; }?>">
<div class="inner">
<img src="" alt="" width="168" height="104" alt="" /></a>
<h2></h2>
</div><!-- clients -->
</div><!-- page -->
您的链接已死亡。 一般来说,最好的方法是使用IE9 / 7 CSS样式表(谨慎地)使用这种技术:http://www.quirksmode.org/css/condcom.html
大多数IE特定的CSS错误列在这里:http://css-tricks.com/ie-css-bugs-thatll-get-you-every-time/
链接地址: http://www.djcxy.com/p/21981.html上一篇: This boxmodel problem in IE 7 whats the best way to deal with it?