Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[已答复] 求救:TAG横排调用,实在搞不懂了,大大们帮忙解决一下谢谢

[复制链接]
www.bookg.cn 发表于 2009-11-21 19:37:08 | 显示全部楼层 |阅读模式
本帖最后由 www.bookg.cn 于 2009-11-21 20:51 编辑

标签调用中设置的是 显示 8个 (0/8) 现在站内有 20多个TAG 只是 首页调用只显示一个 TAG, 查看首页源文件 却能看到 8个 实在搞不懂事什么原因了.还求各位大哥大姐帮帮忙解决一下:
INDEX中的代码:
<div id="search">
<div class="topsearch">
  <div class="title"></div>
  <div class="inpbox">
                <form action="{S_URL}/batch.search.php" method="post">
                <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
        <input type="text" class="searchtxt" value="" name="searchkey" size="30"/>
                <input type="hidden" name="searchname" id="searchname" value="subject" />
                        <select name="searchtxt" id="searchtxt" onchange="changetype();">
                                <option value="标题">标题</option>
                                <option value="内容">内容</option>
                                <option value="作者">作者</option>
                        </select>
                        <input class="search-submit" type="submit" value="搜索" name="searchbtn"/>
                </form>
  </div>
  <div class="hots"></div>
  <div class="hots_r">
<!--{block name="tag" parameter="order/spacenewsnum DESC/limit/0,8/cachetime/88008/cachename/hottag/tpl/data"}-->
<!--{loop $_SBLOCK['hottag'] $value}-->
<ul>                                       
<li><a href="$value[url]">$value[tagname]</a>($value[spacenewsnum])</li></ul>
                                        <!--{/loop}-->
</div>
</div>
</div>
<!--search  end-->
回复

使用道具 举报

 楼主| www.bookg.cn 发表于 2009-11-21 19:38:42 | 显示全部楼层
  1. CSS中的代码
复制代码

  1. /*----------搜索*/
  2. #search { width:1004px; overflow:hidden; background:#fff; }
  3. .topsearch{
  4.         margin:0 auto 8px;
  5.         height:37px;
  6.         width:1002px;
  7.         border-right:1px solid #EEE;
  8.         background:url(../images/topsearch_bg.gif) repeat-x;
  9.         overflow:hidden;
  10. }

  11. .topsearch .title{
  12.         height:37px;
  13.         width:83px;
  14.         float:left;
  15.         background:url(../images/topsearch_title.gif) left center no-repeat;
  16. }
  17. .search-submit {
  18.         cursor:pointer;
  19.         width:68px;
  20.         height:23px;
  21.         font-size:0px;
  22.         color:#fafafa;
  23.         border:0px;
  24.         background:url(../images/search-bt.gif) no-repeat;
  25. }
  26. .topsearch .inpbox{
  27.         float:left;
  28.         margin-top:5px;
  29.         width:300px;
  30. }
  31. .topsearch .inpbox input{
  32.         margin-left:1px;
  33.         margin-right:8px;
  34. }
  35. .topsearch .inpbox select{
  36.         font-size:14px;
  37.         width:58px;
  38.         margin-right:8px;
  39. }
  40. .topsearch .inpbox .searchtxt{
  41.         height:11px;
  42.         width:120px;
  43.         font-size:12px;
  44.         padding:6px 0 4px 5px;
  45.         border-width:1px;
  46.         border-style:solid;
  47.         border-color:#808080 #D4D0C8 #D4D0C8 #808080;
  48. }
  49. .topsearch .hots{
  50.         height:33px;
  51.         width:70px;
  52.         float:left;
  53.         background:url(../images/search-tags-titlea.gif) left center no-repeat;
  54. }
  55. .topsearch .hots_r{
  56.         line-height:33px;
  57.         float:left;
  58. }
复制代码
回复

使用道具 举报

benba 发表于 2009-11-21 19:45:54 | 显示全部楼层
以CSS里加一条: .hots_r ul{float:left;}  写调用的人有才!!把UL包到LOOP里了.
回复

使用道具 举报

 楼主| www.bookg.cn 发表于 2009-11-21 19:59:36 | 显示全部楼层
以CSS里加一条: .hots_r ul{float:left;}  写调用的人有才!!把UL包到LOOP里了.
benba 发表于 2009-11-21 19:45


谢谢您,按您说的 在CSS里加一条 .hots_r ul{float:left;}   把UL 拿到 LOOP外面 以后  现在可以显示 2个 TAG了  问题还是没解决
回复

使用道具 举报

benba 发表于 2009-11-21 20:06:49 | 显示全部楼层
谢谢您,按您说的 在CSS里加一条 .hots_r ul{float:left;}   把UL 拿到 LOOP外面 以后  现在可以显示 2个 ...
www.bookg.cn 发表于 2009-11-21 19:59



    UL  拿到外面  就写:     .hots_r li{float:left;}
回复

使用道具 举报

 楼主| www.bookg.cn 发表于 2009-11-21 20:23:12 | 显示全部楼层
谢谢大哥 TAG可以正常显示了,但是 两个标签中间无 间距 应该怎么改啊((em:12))
回复

使用道具 举报

 楼主| www.bookg.cn 发表于 2009-11-21 20:40:41 | 显示全部楼层
.hots_r li{PADDING-RIGHT: 5px; DISPLAY: block; PADDING-LEFT: 5px; float:left;}
做了填充 解决了无间距 谢谢 BENBA 大哥
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-11-21 17:15 , Processed in 0.124817 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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