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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[交流] 帮忙看段代码 怎么改

[复制链接]
邵飘摇 发表于 2020-5-18 17:29:24 | 显示全部楼层 |阅读模式
本帖最后由 邵飘摇 于 2020-5-18 20:24 编辑

下面这段代码 二级导航代码 代码中的 文字最多只能显示4个字符 修改哪段可以改成显示6个字符
  1. <!--{block it618_subnav_block}-->

  2. <table class="it618_subnav_table" width="100%" cellpadding="0" cellspacing="0">
  3. <tr>
  4. <td>
  5. {$nav_topdiy}
  6. </td>
  7. </tr>
  8. <tr>
  9. <td>
  10. <style>
  11. *{ margin:0; padding:0;}
  12. .a_mu{border:0;margin-bottom:1px}
  13. li{ list-style:none;}
  14. #nav_sub{ width:100%; margin:0 auto; background:url(source/plugin/it618_subnav/images/sub_nav_bg.png) repeat-x; height:63px; overflow:hidden;}
  15. #nav_sub span{ width:33px; height:52px; top:2; left:13px; position:absolute;text-align:left}
  16. #nav_sub span strong{font-size:15px;color:#FFF; line-height:18px;display:block; width:10px; margin-left:5px; margin-top:5px}
  17. .part1 span{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -506px -32px;}
  18. .part2 span{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -506px -87px;}
  19. .part3 span{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -506px -143px;}
  20. .part1,.part2,.part3{ margin-top:7px; background:url(source/plugin/it618_subnav/images/sub_nav_line.gif) right no-repeat; position:relative; float:left;}
  21. .part1 ul,.part2 ul,.part3 ul{ margin-top:2px; margin-left:52px;}
  22. .part1 ul li,.part2 ul li,.part3 ul li{ float:left;}
  23. .part1{ width:406px; height:52px;}
  24. .part2,.part3{ width:315px; height:52px;}
  25. .part1 a,.part2 a,.part3 a{ height:24px; display:block; font-size:14px; text-decoration:none; color:#000; text-align:center; line-height:24px;}

  26. <!--{if $it618_subnav['nav_groupstyle']==1}-->
  27. .part1 a{ width:44px;}
  28. <!--{else}-->
  29. .part1 a{ width:71px;}
  30. <!--{/if}-->
  31. .part3 a,.part2 a{ width:71px;}

  32. <!--{if $it618_subnav['nav_groupstyle']==1}-->
  33. .part1 a:hover{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -506px -284px transparent; color:#fff;}
  34. <!--{else}-->
  35. .part1 a:hover{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -506px -255px transparent; color:#fff;}
  36. <!--{/if}-->
  37. .part2 a:hover,.part3 a:hover{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -506px -255px transparent; color:#fff;}
  38. .part4 a{ float:left; display:block; width:76px; height:50px; position:relative; margin-right:3px; text-indent:-9999px;}
  39. .part4 a.post_topic{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -105px -69px;}
  40. .part4 a.post_topic:hover{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -105px -139px;}
  41. .part4 a.quick_reg{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -184px -69px;}
  42. .part4 a.quick_reg:hover{ background:url(source/plugin/it618_subnav/images/nav_icon.gif) no-repeat -184px -139px;}
  43. </style>
  44. <div id="nav_sub">
  45. <div class="part1">
  46. <span><strong>{$it618_subnav['nav_grouptitle1']}</strong></span>
  47. <ul>
  48. {$it618_subnav['nav_group1']}
  49. </ul>
  50. </div>
  51. <div class="part2">
  52. <span><strong>{$it618_subnav['nav_grouptitle2']}</strong></span>
  53. <ul>
  54. {$it618_subnav['nav_group2']}
  55. </ul>
  56. </div>
  57. <div class="part3">
  58. <span><strong>{$it618_subnav['nav_grouptitle3']}</strong></span>
  59. <ul>
  60. {$it618_subnav['nav_group3']}
  61. </ul>
  62. </div>
  63. <div class="part4" style="float:left;margin-top:7px;">
  64. <a href="forum.php?mod=misc&action=nav" class="post_topic"></a>
  65. <a href="member.php?mod=register" class="quick_reg"></a>
  66. </div>
  67. </div>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td>
  72. {$nav_bottomdiy}
  73. </td>
  74. </tr>

  75. </table>

  76. <!--{/block}-->
复制代码





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
free158 发表于 2020-5-22 14:23:45 | 显示全部楼层
你有截图的功夫  不如 贴网址……
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-22 21:59 , Processed in 0.024539 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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