首页 > 网站 > WEB开发 > 正文

6.0首页横排图标,完美解决

2024-04-27 14:00:41
字体:
来源:转载
供稿:网友

将discuz.htm中

<th width="$cat[forumcolwidth]"{$forum[folder]}>
          <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2>
          <p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p>
          <p>{lang forum_lastpost}:
                  <!--{if is_array($forum['lastpost'])}-->
   <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][dateline]</a>
   {lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
                  <!--{else}-->
   {lang never}
                  <!--{/if}-->
          </p>
  </th>


换成

 

<td width="$cat[forumcolwidth]" valign="top" class="altbg2" onMouSEOver="this.style.backgroundColor='{ALTBG1}'" onMouseOut="this.style.backgroundColor='{ALTBG2}'">
         <table cellspacing="0" cellpadding="0" width="100%">
         <tr><td rowspan="3" align="center" width="15%">$forum[icon]</td><td colspan="3" class="bold subject"><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a>  
  <b> $forum[moderators]</span></td></tr>
         <tr class="smalltxt"><td colspan="3">
         $forum[description]<!--{if $forum['subforums']}--><br><span class="bold">{lang forum_subforums}:</span> $forum['subforums']<!--{/if}-->
        
         </td></tr><tr class="smalltxt"><td>{lang forum_threads}: $forum[threads]</td><td>{lang forum_posts}: $forum[posts]</td><td>{lang forum_todayposts}: $forum[todayposts]</td></tr></table>
         </td>


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表