大师兄 发表于 2017-10-26 12:11:31

分享几个经典的discuz二级导航代码

本帖最后由 大师兄 于 2017-10-26 13:03 编辑

今天给大家分享几个discuz二级导航代码,直接看效果吧:
1、discuz官网样式


代码如下:

<div id="dzf" class="cl" style="text-align:left;">
<style type="text/css">
.pg_index #pt .y { height: 28px; overflow: hidden; }
.mlt li .cl { height: 18px; overflow: hidden; }
.mlt li .c { height: auto!important; }
#pp {zoom:1;}
#dzf{margin-bottom: -1px;padding:10px 0;border: solid #CDCDCD;border-width: 0 0 1px;background: #F5F7F9;line-height:160%}
#dzf p{width:33%;text-indent:70px;background:url(http://att.discuz.net/data/attachment/album/201005/14/0953351hcnq10n6w4zqnwh.png) no-repeat 10px 2px}
.dzfbl{border-left:1px solid #FFF}
.dzfbr{border-right:1px solid #DDD}
#dzf em{display:block;color:#D3DFDF}
#dzf .xg2{color:#666}
#dzf em a{color:#369}
#scbar td { padding: 0 !important; }
</style>
<p class="z dzfbr" style="background: url(http://www.qiankoo.com/piclink/win_x48x55.png) no-repeat 15px 6px;">
<a href="http://www.qiankoo.com/forum-66-1.html" class="xw1" target="_blank">电脑教程</a>
<em class="xg2">最通俗的语言、最简单的方法!</em>
<em><a href="http://www.qiankoo.com/thread-210-1-1.html" target="_blank">win7系统安装</a> | <a href="http://www.qiankoo.com/thread-15-1-1.html" target="_blank">如何用U盘装win7系统</a></em>
</p>
<p class="z dzfbr dzfbl" style="background: url(http://www.qiankoo.com/piclink/win8_x48x55.png) no-repeat 15px 6px">
<a href="http://www.qiankoo.com/forum-55-1.html" target="_blank" class="xw1">软件|系统下载</a>
<em class="xg2">最新win7系统下载、纯净版系统下载</em>
<em><a href="http://www.qiankoo.com/forum-55-1.html" target="_blank">软件/工具</a> | <a href="http://www.qiankoo.com/forum-53-1.html" target="_blank"><b>壁纸|主题下载</b></a> | <a href="http://www.qiankoo.com/thread-70-1-1.html" target="_blank">系统优化</a></em>
</p>
<p class="z dzfbl" style="text-indent:15px;background: none"">
<em><a href="http://www.qiankoo.com/thread-785-1-1.html" target="_blank">【发帖须知】新手必看!</a> | <a href="http://www.qiankoo.com/forum-52-1.html" style="color:red;" target="_blank">电脑问题求助</a>
<em><a href="http://www.qiankoo.com/thread-180-1-1.html"style="color:red; "target="_blank"> ☆教你快速挣酷币,从此不用再灌水☆</a> - <a href="http://www.qiankoo.com/thread-202-1-1.html" target="_blank">>>诚招版主<<</a></em>
<em><a href="http://www.qiankoo.com/thread-216-1-1.html" target="_blank">✈官方QQ群</a></em>
</p>
</div>2、19楼模版

代码如下:
<style type="text/css">
#nav{ width:958px; height:66px; margin:0 auto; padding:0;}
.nav_floor{ width:956px; height:66px; margin:0 auto; padding:0;}
#nav .nav_floor{ margin-bottom:-8px; padding:5px 0px 6px 0px; font-size:14px; border:1px solid #e8e8e8; border-top:none; background-position:0 -256px; overflow:hidden;}
.nav_box { padding:0 0px 0 3px; overflow:hidden;}
.nav_box li { float:left; padding:0 2px 0 2px; margin-right:0px; width:115px; height:21px;line-height:21px; background-position:right 0px; list-style:none;}
.nav_box li a { display:block; padding-left:0px; width:115px; height:21px; background-position:7px 0px; overflow:hidden; color:#333333; text-decoration:none;}
.nav_box li a span { font-family:Verdana,Arial; font-size:12px; font-weight:700;}
#nav .nav_box li a:hover{ background-color:#cc0000; color:#fff; background-position:7px -86px; text-decoration:none;}
</style>
<DIV id=nav>
<DIV class=nav_floor>
<UL class=nav_box>
<li><a href=" " title="新生报到"><span>01#:</span>新生报到</a></li>
<li><a href=" " title="科大答疑"><span>02#:</span>科大答疑</a></li>
<li><a href=" " title="科大咨询"><span>03#:</span>科大咨询</a></li>
<li><a href=" " title="聊天灌水"><span>04#:</span>聊天灌水</a></li>
<li><a href=" " title="情感故事"><span>05#:</span>情感故事</a></li>
<li><a href=" " title="科大交友"><span>06#:</span>科大交友</a></li>
<li><a href=" " title="励志成才"><span>07#:</span>励志成才</a></li>
<li><a href=" " title="试卷资料"><span>08#:</span>试卷资料</a></li>
<li><a href=" " title="科大考研"><span>09#:</span>科大考研</a></li>
<li><a href=" " title="爱好文学"><span>10#:</span>爱好文学</a></li>
<li><a href=" " title="英语一角"><span>11#:</span>英语一角</a></li>
<li><a href=" " title="培训考证"><span>12#:</span>培训考证</a></li>
<li><a href=" " title="科大祝福"><span>13#:</span>科大祝福</a></li>
<li><a href=" " title="宿舍天地"><span>14#:</span>宿舍天地</a></li>
<li><a href=" " title="时尚生活"><span>15#:</span>时尚生活</a></li>
<li><a href=" " title="游戏动漫"><span>16#:</span>游戏动漫</a></li>
<li><a href=" " title="影音视听"><span>17#:</span>影音视听</a></li>
<li><a href=" " title="体育天下"><span>18#:</span>体育天下</a></li>
<li><a href=" " title="电脑数码"><span>19#:</span>电脑数码</a></li>
<li><a href=" " title="我爱摄影"><span>20#:</span>我爱摄影</a></li>
<li><a href=" " title="就业指导"><span>21#:</span>就业指导</a></li>
<li><a href=" " title="求职招聘"><span>22#:</span>求职招聘</a></li>
<li><a href=" " title="家教中心"><span>23#:</span>家教中心</a></li>
<li><a href=" " title="二手交易"><span>24#:</span>二手交易</a></li>
</UL>
</DIV>
</DIV>

3、绿色模版
<style>
.archy_twoad { width:958px; border:1px solid #dfdfdf; border-top-width:0; height:50px; padding-top:6px; overflow:hidden; }
.archy_twoadc { padding-left:5px; }
.archy_twoadc li { display:inline; }
.archy_twoadc a { display:inline-block; padding:0 5px; text-decoration: none; font-size: 12px;}
.ie_all .archy_twoadc a { padding:0 4px; }
.archy_twoadc a:hover { font-size:12px; text-decoration:underline; }
</style>
<div class="archy_twoad">
<table cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td align="left" rowspan="2"><a href="#"><img width="35" height="44" border="0" src="static/ */menu_news.gif"></a></td>
<td class="archy_twoadc">
<li><a href="#">综合</a></li>
<li><a href="#">专题</a></li>
<li><a href="#">推荐</a></li>
<li><a href="#">经典线路</a></li>
</td>
<td width="52" align="right" rowspan="2"><a href="#"><img width="35" height="44" border="0" src="static/ */menu_zhuangbei.gif"></a></td>
<td class="archy_twoadc">
<li><a href="#">户外品牌</a></li>
<li><a href="#">装备评测</a></li>
<li><a href=" /">站长论坛</a></li>
</td>
<td width="52" align="right" rowspan="2"><a href="#"><img width="35" height="44" border="0" src="static/ */menu_bbs.gif"></a></td>
<td class="archy_twoadc">
<li><a href="#">滑雪</a></li>
<li><a href="#">自驾游</a></li>
<li><a href=" /">网站建设</a></li>
<li><a href="#">健身</a></li>
<li><a href="#">跑步</a></li></td>
<td width="52" align="right" rowspan="2"><a href="#"><img width="35" height="44" border="0" src="static/ */menu_huodong.gif"></a></td>
<td class="archy_twoadc">
<li><a href="#">郊游</a></li>
<li><a href="#">行业</a></li>
<li><a href="#">结伴同行</a></li>
<li><a href="#"><font color="red">趣味</font></a></li></td>
</tr>
<tr>
<td valign="middle" class="archy_twoadc">
<li><a href="#">城市</a></li>
<li><a href="#">旅游</a></li>
<li><a href="#">资料</a></li>
<li><a href=" /forum-45-1.html">Discuz教程</a></li>
</td>
<td class="archy_twoadc">
<li><a href="#">装备知识</a></li>
<li><a href="#">户外资料</a></li>
<li><a href=" /forum-44-1.html">Discuz模板</a></li>
</td>
<td class="archy_twoadc">
<li><a href="#">登山</a></li>
<li><a href="#">自行车</a></li>
<li><a href="#"><font color="red">猫途微博</font></a></li>
<li><a href="#">贴图</a></li>
<li><a href="#">灌水</a></li>
</td>
<td class="archy_twoadc">
<li><a href="#">聚会</a></li>
<li><a href="#">热门</a></li>
<li><a href="#">旅游常识</a></li>
<li><a href="#">拓展</a></li>
</td>
</tr>
</table>
</div>
注:以上二级代码都是可以自己任意修改的,大家可以发挥自己的html技术,打造出自己独有的二级导航











页: [1]
查看完整版本: 分享几个经典的discuz二级导航代码