去评论
dz插件网

Discuz 主题列表页左侧板块导航栏美化

admin
2020/08/19 16:45:28


HTML:
  1. <!--{if $leftside}-->        <div id="sd_bdl" class="bdl" onmouseover="showMenu({'ctrlid':this.id, 'pos':'dz'});" setting']['leftsidewidth']}px;margin-left:-{$_G['leftsidewidth_mwidth']}px">                <!--{hook/forumdisplay_leftside_top}-->                <!--[diy=diyleftsidetop]--><div id="diyleftsidetop" class="area"></div><!--[/diy]-->                <div id="forumleftside">                        <!--{subtemplate forum/forumdisplay_leftside}-->                </div>                <!--[diy=diyleftsidebottom]--><div id="diyleftsidebottom" class="area"></div><!--[/diy]-->                <!--{hook/forumdisplay_leftside_bottom}-->        </div><!--{/if}-->
CSS:
  1. /*        主题列表页 - 左侧板块导航------------------------------------------------------------------- */#sd_bdl{width: 150px;border: 1px solid #dbeffc;background-color: #FFF;}#sd_bdl .bdl_h{color: #09E;height: 48px;background: #FFF;text-align: center;line-height: 48px;font-size: 20px;border-bottom: 1px solid #edf7fe;}#sd_bdl.bdl dl{border-bottom: 1px solid #edf7fe;text-align: center;background: #f5fafe;font-size: 14px;color: #3f95e5;cursor: pointer;overflow: hidden;margin: 0;}#sd_bdl.bdl dl.a dt{background: #99cdf1;}#sd_bdl.bdl dl.a dt a{color: #FFF;background: url("../images/forum_arrow_normal.png") no-repeat 6px -57px;}#sd_bdl.bdl dt{margin-bottom: 0;border: 0;background: inherit;display: block;padding-left: 12px;height: 40px;line-height: 40px;} #sd_bdl.bdl dt a{padding: 0;background: url("../images/forum_arrow_normal.png") no-repeat 6px 14px;}#sd_bdl.bdl dd{border-bottom: 1px solid #dcefff;background-color: #FFF;padding-left: 32px;height: 40px;line-height: 40px;font-size: 13px;color: #666;overflow: hidden;} #sd_bdl.bdl dd:last-child{border-bottom: 0;}#sd_bdl.bdl dd a{height: 40px;line-height: 40px;}#sd_bdl.bdl dd.bdl_a a{background-color:inherit; color: #09E; font-weight: 500; }

图片: