发新话题
打印

[问题求助] 有懂CSS的高手吗?帮我看一下一个小代码行吗

有懂CSS的高手吗?帮我看一下一个小代码行吗

我装了
wp-postviews插件

要在 index.php当中 插入 这段代码
复制内容到剪贴板
代码:
<?php if(function_exists('the_views')) { the_views(); } ?>
我的
index.php
引用:
<?php get_header(); ?>
<div id="content">
  <?php if (have_posts()) : ?>
  <?php while (have_posts()) : the_post(); ?>
  <div class="post" id="post-<?php the_ID(); ?>">
    <div class="entry">
      <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="到《<?php the_title(); ?>》的永久链接">
        <?php the_title(); ?>
        </a></h2>
      <span>作者:
      <?php if (get_the_author_url()) { ?>
      <a href="<?php the_author_url(); ?>">
      <?php the_author(); ?>
      </a>
      <?php } else { the_author(); } ?>
      时间:
      <?php the_time('Y年m月d日 l') ?>
      </span> </div>
    <div class="post-content">
      <?php the_content('阅读这篇文章的其余部分 »'); ?>
    </div>
    <div class="post-info"> <span class="post-cat">
      <?php the_category(', ') ?>
      </span> <span class="post-comments">
      <?php comments_popup_link('发表评论 »', '1 条评论 »', '% 条评论 »'); ?>
      </span> </div>
  </div>
  <?php endwhile; ?>
  <div class="navigation"> <span class="previous-entries">
    <?php next_posts_link('« 较旧文章') ?>
    </span> <span class="next-entries">
    <?php previous_posts_link('较新文章 »') ?>
    </span> </div>
  <?php else : ?>
  <h2 class="center">没有内容</h2>
  <p class="center">抱歉,您要找的东西不在这里。</p>
  <?php endif; ?>
</div>
<!--/content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
我要在
复制内容到剪贴板
代码:
<?php comments_popup_link('发表评论 &raquo;', '1 条评论 &raquo;', '% 条评论 &raquo;'); ?>
这个之前插入
请问 应该添加的代码是多少啊

我直接插入 首页就变形 请问怎么办啊

[ 本帖最后由 周董 于 2008-9-28 20:14 编辑 ]

TOP

汗。。。这个。。。是css么?
Slyar Home -- www.slyar.com

TOP

引用:
原帖由 slyar 于 2008-9-28 20:11 发表
汗。。。这个。。。是css么?
这个我也不怎么清楚饿
能帮下忙吗

TOP

<span>作者:
      <?php if (get_the_author_url()) { ?>
      <a href="<?php the_author_url(); ?>">
      <?php the_author(); ?>
      </a>
      <?php } else { the_author(); } ?>
      时间:
      <?php the_time('Y年m月d日 l') ?>
      </span> </div>

加在</span>之间的合适的地方,不要把其它代码弄断了就可以.

TOP

引用:
原帖由 golfreader 于 2008-9-28 20:43 发表
作者:
      
      
....
不行哦

一添加首页就错位

TOP

发新话题