0

这是我为一家面包店做的第一个 HTML 到 Wordpress 的转换。我试图用不成功的响应解决 wordpress 法典和论坛的问题。

以下场景适用于全宽页面。我确定这很简单(我可能是错的),但我没有看到。

场景 1:当我单独键入文本时,对齐效果很好,但是段落之间的返回键不会像应该那样分隔段落

场景2:图像向右对齐只移动图片旁边的1句行,其余的在它下面。

场景 3:插入图像或表格时,所有内容都移出指定容器 (div) 并丢失为其设置的样式。

http://www.treunorth.com/pennycakes/about/

是否需要将一行代码添加到“page-full.php”或调整 css 以使其正常工作?

页面-full.php:

<?php /* Template Name: Page - Full Width */ ?>

<?php get_header(); ?>

<!-- Page Article -->

<div class="clear"></div> 

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<section id="story" class="container_16 clearfix">
    <div class="story-top grid_16"></div>

    <div class="story grid_16">
        <h1 class="meander"><?php the_title(); ?></h1>
        <p class="m500">
            <?php if (have_posts()) : while (have_posts()) : the_post();?>
            <?php the_content(); ?>
            <?php wp_link_pages(); ?>
            <?php edit_post_link( __( 'Edit', 'pennycakes' ), '<span class="edit-link">', '</span>' ); ?>
            <?php endwhile; endif; ?>
        </p><!-- .entry-content -->
    </div>
    <div class="story-bottom grid_16"></div>

</section>
</article><!-- #post-<?php the_ID(); ?> -->

<div class="clear"></div> 

<!-- //Page Article -->

<?php get_footer(); ?>

样式表:

.container_16 .grid_16 {
    width: 972px;
    }

/*--------------------------------
 9) STORY
--------------------------------*/
#story { margin-top: 30px; }
.story-top { background: url('../css/images/bg-full-top.png') no-repeat center top; height: 30px; }
.story { background: url('../css/images/bg-full.png') repeat-y center top;}
.story h1 { font-size: 64px; color: #BF4A72; text-align: center; padding: 15px 0;}
.story p { font-size: 13px; color: #73656e; line-height: 19px; padding: 0 42px 0 42px; }
.story p.signature { background-position: 0 -949px; font-size: 26px; line-height: 51px; margin-bottom: 20px; margin-left: 42px; margin-top: 24px;}
.story-bottom { background: url('../css/images/bg-full-bottom.png') no-repeat center top; height: 31px;}
4

2 回答 2

0

您错过了几个段落标签。将这些文本放在关于页面的段落标记中

<p>I am a trained chef. I went to school at the California Culinary Academy in San Francisco. There I took courses in baking. Through my journey of gaining experience in the field I spent a year of that working in a bakery specializing in cake decorating. Post bakery my cake journey has gained me experience state side and 2 years in Finland baking cakes in restaurants and for family and friends.</p>

<p>I am a trained chef. I went to school at the California Culinary Academy in San Francisco. There I took courses in baking. Through my journey of gaining experience in the field I spent a year of that working in a bakery specializing in cake decorating. Post bakery my cake journey has gained me experience state side and 2 years in Finland baking cakes in restaurants and for family and friends.
</p>
于 2012-10-11T06:29:29.613 回答
0

表格没有宽度,其中的单元格也没有。所以造型不是一件容易的事...

段落标签也有一些样式。就像 19px fx 和更多的行高。

此外,大多数样式不会从 div 继承到其中的表。您还需要在表格中添加一些样式。

于 2012-10-11T06:32:51.657 回答