嗨,我试图将 query_posts 列表放在 3 列布局中...
<div id=”main”>
<div id=”sinistra”>
</div>
<div id=”centro”>
</div>
</div>
<div id=”destra”>
</div>
<ul>
<ul id="main">
<style type="text/css">
#main { list-style:none; width:900px; }
#main li { overflow:auto; margin:10px 0px; border-bottom:1px solid #E6E6E6; padding-bottom:0px; padding-top:0px; padding-left:0px; padding-right:0px; }
#main li img { float:left; margin-right:5px; border:4px solid #EEEEEE;}
#main li a { text-decoration:none; font-weight:bold; color:#1e292b;}
#main li p { margin-top:30px; }
#main li {float:left;width:900px}
#sinistra li {float:left;width:900px}
#centro li {float:right;width:600px}
#destra li {float:right;width:300px}
</style>
<?php
query_posts( "orderby=&order=DESC&cat=28& posts_per_page=12" );
if (have_posts()) : while (have_posts()) : the_post(); ?>
<li>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail(array(90,120)); ?></a>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a><br>
<p>blablaprova</p>
</li>
<?php
endwhile; endif;
wp_reset_query();
?>
</ul>
我需要 CSS 将 12 个相同类别的帖子划分为 4|4|4,按上次编辑排序 感谢您的帮助