找回密码
 注册
搜索
免费空间 免费域名 免费AI 老牌主机商首月仅1美分!27美元/年!Spaceship优惠码 Namecheap优惠码阿里云2核2G3M新老续费同享99元/年!
查看: 168|回复: 4

[问题求助] 请问下WP的这个功能怎么实现

[复制链接]
发表于 2009-5-8 17:49:32 | 显示全部楼层 |阅读模式
范例http://www.freesocks5.com/proxies/
这个网站的,那个可以拉的,不知道怎么称呼
可以让列表显示不至于太长,
需要通过插件实现,还是自带功能啊?
 楼主| 发表于 2009-5-8 18:17:16 | 显示全部楼层

回复 2楼 sandlong 的帖子

写文章的时候自己定义?还是有按钮啊,或者改模板?

[ 本帖最后由 zjsz007 于 2009-5-8 18:19 编辑 ]
 楼主| 发表于 2009-5-8 19:12:28 | 显示全部楼层
好像是style.css里定义pre
这是横行的
pre {
    width: 100%;
    overflow: auto;
    border: 1px dotted #281;
    background-color: #eee;
    padding-left: 6px;
    padding-bottom: 20px;
}


我看网站源代码是
<pre class="alt2" style=" inset; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 498px; text-align: left;" dir="ltr">

要定义竖行的应该怎么写啊?
头像被屏蔽
发表于 2009-5-8 21:11:18 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2009-5-9 18:23:49 | 显示全部楼层
  1. <?php get_header(); ?>

  2. <div id="content">



  3.         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  4.                 <div class="entry">
  5.                 <div class="post" id="post-<?php the_ID(); ?>">

  6.                                 <div class="head">
  7.                                 <div class="date"><h5><?php the_time('M. j, Y'); ?></h5></div>
  8.                                 <div class="title"><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
  9.                                 </div></div><?php the_content('Read the rest of this entry &raquo;'); ?>
  10.                                 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  11.                                 <h4>Posted by <?php the_author(', ') ?> in <?php the_category(', ') ?></h4>
  12.                                

  13.                                

  14.                         </div>
  15.                 </div>

  16. <div class="entry">
  17.         <?php comments_template(); ?>
  18.         </div>

  19.         <?php endwhile; else: ?>
  20. <div class="entry">
  21.                 <p>Sorry, no posts matched your criteria.</p>
  22. </div>
  23. <?php endif; ?>

  24.         </div>
  25. <?php get_sidebar(); ?>
  26. <?php get_footer(); ?>
复制代码
这是index.php的代码。能帮看下是不是哪行写错了不?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|免费吧论坛

GMT+8, 2024-5-14 12:40 , Processed in 0.029952 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表