【发布时间】:2014-07-12 14:35:12
【问题描述】:
我正在寻求帮助,因为 Wordpress 主题的页脚有一个非常奇怪的行为:整体看起来不错 (http://gwyneth-paltrow.org/test/) 但是,如果我点击一个页面, 它似乎被切断了 (http://gwyneth-paltrow.org/test/?page_id=2)。
看起来页脚从页面宽度中“获取”了它的宽度,并且它也是偏心的。老实说,我不知道问题出在 CSS 上(但如果是这样,我应该在整个网站上遇到同样的问题,而不是仅在页面上发生)还是在 page.php 文件的编码中。我远非专家,但如果我必须打赌,我会说后者,因为那是问题出现的时候。
我正在添加page.php的编码:
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>">
<table>
<tbody>
<tr>
<td style="height:95px; background: url(images/title-nodate.png);valign:top;">
<table style="width:616px;">
<tr>
<td style="width:616px;"><div class="title-nodate"><?php the_title(); ?></div></td>
</tr></table>
<tr>
<td style="width:616px; background: url(images/content.png);">
<div class="content">
<?php the_content('Continue reading »'); ?></div>
</td>
</tr>
<tr>
<td style="width:616px; height:52px; background: url(images/content-bottom.png);"></td>
</tr>
</tbody>
</table></div>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
<?php get_footer(); ?>
非常感谢您的任何建议!
【问题讨论】: