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

 找回密码
 立即注册
搜索

[求助] 求助:好心的人帮帮忙看下!

[复制链接]
hugh450 发表于 2011-4-6 20:23:39 | 显示全部楼层 |阅读模式
本帖最后由 hugh450 于 2011-4-6 21:16 编辑

这是discuz.htm,请问如何修改,将图示的帖子主题列表的位置跟图片对齐!现在的问题是图片的高度设置越大,它的空白处就越大,大家看看,现场演示是http://t.cn/hBQqtx
  1. <!--{subtemplate common/header}-->

  2. <!--{subtemplate common/pubsearchform}-->

  3. <!--{ad/text/wp a_t}-->
  4. <style id="diy_style" type="text/css"></style>
  5. <div class="wp">
  6.         <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  7. </div>

  8. <div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
  9.         <div id="chart" class="bm bw0 cl">
  10.                 <!--{if $_G['uid']}--><p class="y"><a href="home.php?mod=space&uid=$_G['uid']&do=thread&view=me" title="{lang my_posts}" class="xi2">{lang my_posts}</a><span class="pipe">|</span><a href="search.php?mod=forum&srchfrom=$newthreads&searchsubmit=yes" title="{lang show_newthreads}" class="xi2">{lang show_newthreads}</a></p><!--{/if}-->
  11.                 <p class="chart">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: $postdata[0]<span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['setting']['lastmember']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['setting']['lastmember'])}" target="_blank" class="xi2">$_G['setting']['lastmember']</a></em><!--{/if}--></p>
  12.         </div>
  13.         <!--{if empty($gid) && $announcements}-->
  14.                 <div id="an" class="bm bw0">
  15.                         <dl class="cl">
  16.                                 <dt class="z xw1">{lang announcements}: </dt>
  17.                                 <dd>
  18.                                         <div id="anc" class="xi2"><ul id="ancl">$announcements</ul></div>
  19.                                 </dd>
  20.                         </dl>
  21.                 </div>
  22.                 <script type="text/javascript">announcement();</script>
  23.         <!--{/if}-->

  24.         <div class="mn">

  25.                 <!--{hook/index_top}-->

  26.                 <!--{if !empty($_G['cache']['heats']['message'])}-->
  27.                         <div class="bm">
  28.                                 <div class="bm_h cl">
  29.                                         <h2>{lang hotthreads_forum}</h2>
  30.                                 </div>
  31.                                 <div class="bm_c cl">
  32.                                         <div class="heat z">
  33.                                                 <!--{loop $_G['cache']['heats']['message'] $data}-->
  34.                                                         <dl class="xld">
  35.                                                                 <dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->
  36.                                                                 <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
  37.                                                                 <dd>$data[message]</dd>
  38.                                                         </dl>
  39.                                                 <!--{/loop}-->
  40.                                         </div>
  41.                                         <ul class="xl heatl">
  42.                                         <!--{loop $_G['cache']['heats']['subject'] $data}-->
  43.                                                 <li><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}--><a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></li>
  44.                                         <!--{/loop}-->
  45.                                         </ul>
  46.                                 </div>
  47.                         </div>
  48.                 <!--{/if}-->

  49.                 <div class="fl bm">
  50.                 <!--{loop $catlist $key $cat}-->
  51.                         <div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
  52.                                 <div class="bm_h cl">
  53.                                         <span class="o">
  54.                                                 <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
  55.                                         </span>
  56.                                         <!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
  57.                                         <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
  58.                                         <h2><a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}" style="{if $cat[extra][namecolor]}color: {$cat[extra][namecolor]};{/if}">$cat[name]</a></h2>
  59.                                 </div>
  60.                                 <div id="category_$cat[fid]" class="bm_c" style="$collapse['category_'.$cat[fid]]">
  61.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  62.                                                 <tr>
  63.                                                 <!--{loop $cat[forums] $forumid}-->
  64.                                                 <!--{eval $forum=$forumlist[$forumid];}-->
  65.                                                 <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
  66.                                                 <!--{if $cat['forumcolumns']}-->
  67.                                                         <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  68.                                                                 </tr>
  69.                                                                 <!--{if $forum['orderid'] < $cat['forumscount']}-->
  70.                                                                         <tr class="fl_row">
  71.                                                                 <!--{/if}-->
  72.                                                         <!--{/if}-->
  73.                                                         <td class="fl_g" width="$cat[forumcolwidth]">
  74.                                                                 <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  75.                                                                 <!--{if $forum[icon]}-->
  76.                                                                         $forum[icon]
  77.                                                                 <!--{else}-->
  78.                                                                         <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  79.                                                                 <!--{/if}-->
  80.                                                                 </div>
  81.                                                                 <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  82. <div style="float:right;width:40%; "><font color="#99CC00"><!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p>{lang forum_moderators}: $forum[moderators]</p><!--{else}--><span class="dropmenu" id="mod$forum[fid]" onmouseover="showMenu({'ctrlid':this.id})">{lang forum_moderators}</span><ul class="popupmenu_popup headermenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul><!--{/if}--><!--{else}--> <a href="http://www.163-3.com/thread-30849-1-1.html"target="_blank">申请版主</a><!--{/if}--></font></div>
  83.                                                 <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a></dt>

  84.                                                 <!--{if !$forum['redirect']}-->
  85. <p><!--{if $forum[description]}-->$forum[description]<!--{/if}--></p>
  86. <dd class="i"><em>{lang forum_threads}: $forum[threads]</em> <em>{lang forum_posts}: $forum[posts]</em> <em><!--{if $forum[todayposts]}-->{lang forum_todayposts}: <font color="#FF3399">$forum[todayposts]</font><img src="static/image/common/new_bg.gif"align="absmiddle"><!--{else}-->{lang forum_todayposts}: <font color="#FF3399">0</font><!--{/if}--></em></dd>
  87.                                                 <!--{/if}-->
  88.                                                 <!--{if $forum[description] && !$cat['forumcolumns']}--><dd class="xg2">$forum[description]</dd><!--{/if}-->
  89.                                                 <!--{if $forum['subforums'] && $cat['forumcolumns'] <= 1}--><dd class="sfl">{lang forum_subforums}: $forum['subforums']</dd><!--{/if}-->
  90.                                                 <dd>
  91.                                                 <!--{if $forum['permission'] == 1}-->
  92.                                                         {lang private_forum}
  93.                                                 <!--{else}-->
  94.                                                         <!--{if $forum['redirect']}-->
  95.                                                                 <a href="$forumurl" class="xi2">{lang url_link}</a>
  96.                                                         <!--{elseif is_array($forum['lastpost'])}-->
  97.                                                                
  98. <!--{if $cat['forumcolumns'] >1}-->
  99. <ul class="list" style="background-image: url(static/image/common/panpanluo_bg.gif) ; padding:1px  0px 0px 18px; list-style-type: none; line-height: 20px; clear: both; margin:20px 30; ">
  100.   <!--{loop ${"new_no".$forum[fid]."_threadlist"} $row}-->
  101.    <div style="overflow: hidden; height:20px; width:100%"><small style="float:right; color:#9C8B88; margin: 0 0 0 5px">$row['date']</small><a href="forum.php?mod=viewthread&tid=$row[tid]" title="$row[subject]" target='_self'>$row[view_subject]</a></div>
  102.                                 <!--{/loop}-->
  103. </ul>
  104. {lang forum_lastpost}: $forum['lastpost']['author'] - $forum[lastpost][dateline]
  105. <p>{lang posts}: <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2" title="$forum[lastpost][subject]">{echo cutstr($forum[lastpost][subject], 38)}</a></p>                                                        
  106.                                                         <!--{else}-->
  107. {lang forum_lastpost}{lang posts}: <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2" title="$forum[lastpost][subject]">{echo cutstr($forum[lastpost][subject], 38)}</a>
  108. <p>{lang forum_lastpost}{lang author}: $forum['lastpost']['author'] - $forum[lastpost][dateline]</p>

  109.                                                                                         <!--{/if}-->
  110.                                                                                 <!--{else}-->
  111.                                                                                         {lang never}
  112.                                                                                 <!--{/if}-->
  113.                                                                         <!--{/if}-->
  114.                                                                         </dd>
  115.                                                                 </dl>
  116.                                                         </td>
  117.                                                 <!--{else}-->
  118.                                                         <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  119.                                                                 <!--{if $forum[icon]}-->
  120.                                                                         $forum[icon]
  121.                                                                 <!--{else}-->
  122.                                                                         <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  123.                                                                 <!--{/if}-->
  124.                                                         </td>
  125.                                                         <td>
  126.                                                                 <h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
  127.                                                                 <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  128.                                                                 <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  129.                                                                 <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  130.                                                         </td>
  131.                                                         <td class="fl_i">
  132.                                                                 <!--{if empty($forum[redirect])}--><span class="xi2">$forum[threads]</span><span class="xg1"> / $forum[posts]</span><!--{/if}-->
  133.                                                         </td>
  134.                                                         <td class="fl_by">
  135.                                                                 <div>
  136.                                                                 <!--{if $forum['permission'] == 1}-->
  137.                                                                         {lang private_forum}
  138.                                                                 <!--{else}-->
  139.                                                                         <!--{if $forum['redirect']}-->
  140.                                                                                 <a href="$forumurl" class="xi2">{lang url_link}</a>
  141.                                                                         <!--{elseif is_array($forum['lastpost'])}-->
  142.                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--></cite>
  143.                                                                         <!--{else}-->
  144.                                                                                 {lang never}
  145.                                                                         <!--{/if}-->
  146.                                                                 <!--{/if}-->
  147.                                                                 </div>
  148.                                                         </td>
  149.                                                 </tr>
  150.                                                 <tr class="fl_row">
  151.                                                 <!--{/if}-->
  152.                                                 <!--{/loop}-->
  153.                                                 $cat['endrows']
  154.                                                 </tr>
  155.                                         </table>
  156.                                 </div>
  157.                         </div>
  158.                         <!--{ad/intercat/bm a_c/$cat[fid]}-->
  159.                 <!--{/loop}-->
  160.                 </div>

  161.                 <!--{hook/index_middle}-->


  162.                 <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
  163.                         <div id="online" class="bm oll">
  164.                                 <div class="bm_h">
  165.                                 <!--{if $detailstatus}-->
  166.                                         <span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
  167.                                         <h3>
  168.                                                 <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
  169.                                                 <span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
  170.                                                 - <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
  171.                                                 <strong>$guestcount</strong> {lang index_guests}
  172.                                                 - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  173.                                         </h3>
  174.                                 <!--{else}-->
  175.                                         <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
  176.                                         <h3>
  177.                                                 <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
  178.                                                 <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
  179.                                                 - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  180.                                         </h3>
  181.                                 <!--{/if}-->
  182.                                 </div>
  183.                         <!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
  184.                                 <dl id="onlinelist" class="bm_c">
  185.                                         <dt class="ptm pbm bbda">$_G[cache][onlinelist][legend]</dt>
  186.                                         <!--{if $detailstatus}-->
  187.                                                 <dd class="ptm pbm">
  188.                                                 <ul class="cl">
  189.                                                 <!--{if $whosonline}-->
  190.                                                         <!--{loop $whosonline $key $online}-->
  191.                                                                 <li title="{lang time}: $online[lastactivity]">
  192.                                                                 <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
  193.                                                                 <!--{if $online['uid']}-->
  194.                                                                         <a href="home.php?mod=space&uid=$online[uid]">$online[username]</a>
  195.                                                                 <!--{else}-->
  196.                                                                         $online[username]
  197.                                                                 <!--{/if}-->
  198.                                                                 </li>
  199.                                                         <!--{/loop}-->
  200.                                                 <!--{else}-->
  201.                                                         <li style="width: auto">{lang online_only_guests}</li>
  202.                                                 <!--{/if}-->
  203.                                                 </ul>
  204.                                         </dd>
  205.                                         <!--{/if}-->
  206.                                 </dl>
  207.                         <!--{/if}-->
  208.                         </div>
  209.                 <!--{/if}-->

  210.                 <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
  211.                 <div class="bm lk">
  212.                         <div id="category_lk" class="bm_c ptm">
  213.                                 <!--{if $_G['cache']['forumlinks'][0]}-->
  214.                                         <ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
  215.                                 <!--{/if}-->
  216.                                 <!--{if $_G['cache']['forumlinks'][1]}-->
  217.                                         <div class="mbn cl">
  218.                                                 $_G['cache']['forumlinks'][1]
  219.                                         </div>
  220.                                 <!--{/if}-->
  221.                                 <!--{if $_G['cache']['forumlinks'][2]}-->
  222.                                         <ul class="x mbm cl">
  223.                                                 $_G['cache']['forumlinks'][2]
  224.                                         </ul>
  225.                                 <!--{/if}-->
  226.                         </div>
  227.                 </div>
  228.                 <!--{/if}-->

  229.                 <!--{hook/index_bottom}-->
  230.         </div>

  231.         <!--{if $_G['setting']['forumallowside']}-->
  232.                 <div id="sd" class="sd">
  233.                         <!--{hook/index_side_top}-->
  234.                         <div class="drag">
  235.                                 <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
  236.                         </div>
  237.                         <!--{hook/index_side_bottom}-->
  238.                 </div>
  239.         <!--{/if}-->
  240. </div>

  241. <div class="wp mtn">
  242.         <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  243. </div>
  244. <!--{subtemplate common/footer}-->
复制代码

这是discuz.htm,请问如何修改,将图示的帖子主题列表的位置跟图片对齐!现在的问题是图片的高度设置越大,它的空白处就越大,大家看看,现场演示是http://t.cn/hBQqtx

回复

使用道具 举报

上官仙 发表于 2011-4-10 10:13:02 | 显示全部楼层
路过支持一下啊
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-10 20:42 , Processed in 0.098672 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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