我已经在这里完成了我的网站:http://www.divisionforty.com/wall/,我已经来到了最后的部分,就是把这个内容放到http://www.divisionforty.com/wall/artists/cali-balles/中心
代码如下:
<?php get_header(); ?>
<div class="row">
<div class="span4">
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<p>
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<?php the_content(); ?>
</div>
<?php
endwhile;
endif;
?> </p>
</div>
<div class="span8" id="thumbnails">
<?php postimage($size=thumbnail, $qty=-1) ?>
</div>
</div>
<?php get_footer(); ?>该页面实际上没有任何样式自定义,所以它是基本的引导程序。
希望有人能帮上忙
丹佛
为了澄清这一点,我希望以此为中心:

发布于 2013-10-06 12:48:29
尝尝这个
从你的#wrap div
max-width:1280px你的.row目录将宽度设置为max-width:1200,边距设置为margin:0 auto
text-align: center;添加到你的.row目录中,这样你的文本就会居中。当页面变小时,这应该会让你的内容居中。(不太确定你在找什么。这将确保您的页眉在将其下方的内容居中的同时贯穿整个页面。)
发布于 2013-10-06 13:13:55
创建新的容器类。
<div class="container_2">
<div class="row">
<div class="span4">
...
</div>
</div>
</div>在您的css中,添加以下内容
.container_2 {
width: 1200px; //you can change this.
max-width: 100%;
margin-left: auto;
margin-right: auto;
display: block;
}}
https://stackoverflow.com/questions/19205366
复制相似问题