下面这段代码 二级导航代码 代码中的 文字最多只能显示4个字符 修改哪段可以改成显示6个字符
- <!--{block it618_subnav_block}-->
- <table class="it618_subnav_table" width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td>
- {$nav_topdiy}
- </td>
- </tr>
- <tr>
- <td>
- <style>
- *{ margin:0; padding:0;}
- .a_mu{border:0;margin-bottom:1px}
- li{ list-style:none;}
- #nav_sub{ width:100%; margin:0 auto; background:url(source/plugin/it618_subnav/images/sub_nav_bg.png) repeat-x; height:63px; overflow:hidden;}
- #nav_sub span{ width:33px; height:52px; top:2; left:13px; position:absolute;text-align:left}
- #nav_sub span strong{font-size:15px;color:#FFF; line-height:18px;display:block; width:10px; margin-left:5px; margin-top:5px}
- .part1 span{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -506px -32px;}
- .part2 span{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -506px -87px;}
- .part3 span{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -506px -143px;}
- .part1,.part2,.part3{ margin-top:7px; background:url(source/plugin/it618_subnav/images/sub_nav_line.gif) right no-repeat; position:relative; float:left;}
- .part1 ul,.part2 ul,.part3 ul{ margin-top:2px; margin-left:52px;}
- .part1 ul li,.part2 ul li,.part3 ul li{ float:left;}
- .part1{ width:406px; height:52px;}
- .part2,.part3{ width:315px; height:52px;}
- .part1 a,.part2 a,.part3 a{ height:24px; display:block; font-size:14px; text-decoration:none; color:#000; text-align:center; line-height:24px;}
- <!--{if $it618_subnav['nav_groupstyle']==1}-->
- .part1 a{ width:44px;}
- <!--{else}-->
- .part1 a{ width:71px;}
- <!--{/if}-->
- .part3 a,.part2 a{ width:71px;}
- <!--{if $it618_subnav['nav_groupstyle']==1}-->
- .part1 a:hover{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -506px -284px transparent; color:#fff;}
- <!--{else}-->
- .part1 a:hover{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -506px -255px transparent; color:#fff;}
- <!--{/if}-->
- .part2 a:hover,.part3 a:hover{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -506px -255px transparent; color:#fff;}
- .part4 a{ float:left; display:block; width:76px; height:50px; position:relative; margin-right:3px; text-indent:-9999px;}
- .part4 a.post_topic{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -105px -69px;}
- .part4 a.post_topic:hover{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -105px -139px;}
- .part4 a.quick_reg{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -184px -69px;}
- .part4 a.quick_reg:hover{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -184px -139px;}
- </style>
- <div id="nav_sub">
- <div class="part1">
- <span><strong>{$it618_subnav['nav_grouptitle1']}</strong></span>
- <ul>
- {$it618_subnav['nav_group1']}
- </ul>
- </div>
- <div class="part2">
- <span><strong>{$it618_subnav['nav_grouptitle2']}</strong></span>
- <ul>
- {$it618_subnav['nav_group2']}
- </ul>
- </div>
- <div class="part3">
- <span><strong>{$it618_subnav['nav_grouptitle3']}</strong></span>
- <ul>
- {$it618_subnav['nav_group3']}
- </ul>
- </div>
- <div class="part4" style="float:left;margin-top:7px;">
- <a href="forum.php?mod=misc&action=nav" class="post_topic"></a>
- <a href="member.php?mod=register" class="quick_reg"></a>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- {$nav_bottomdiy}
- </td>
- </tr>
- </table>
- <!--{/block}-->
复制代码
|