discuz! X3.2 navigation drop-down menu style modification

Source: Internet
Author: User

Through the Google "review element" can be found in the DZ Navigation dropdown code as follows:

$_g[setting][menunavs]

The discovery is the G variable function, generally cannot change! But DZ comes with the drop-down menu style is too ugly, I contact DZ is 4 months time, a lot of code do not understand, find the relevant template to view the source code to imitate.

Here's how:

Add a class to the G variable and give the associated CSS style, code:

1
2
3
4
5
6
7
8
9
10
11
12
<divClass="Comeing_nv_pop">
<!--{If!Empty($_g[' Setting '][' Plugins '][' Jsmenu '])}-
<ulClass="P_pop H_pop" id="Plugin_menu" style="Display:none">
<!--{Loop$_g[' Setting '][' Plugins '][' Jsmenu ']$module}-
<!--{If!$module[' Adminid ']||($module[' Adminid ']&&$_g[' Adminid ']>0&&$module[' Adminid ']>=$_g[' Adminid '])}-
<li>$module[url]</li>
<!--{/if}-->
             / nbsp     <!--{/loop}-->
                    < /ul>
                <!-- Span class= "br0" >{/if}-->
                $_g[setting ][menunavs
          </div>

CSS style:

1
2
3
4
5
6
7
8
/* Navigation drop-down style */
. comeing_nv_pop. p_pop{background:#0A5D80; border:0; border-radius:0 0 5px 5px; min-width:130px; Overflow:hidden}
. comeing_nv_pop. P_pop A{padding: 10px 8px; Color:#fff}
. comeing_nv_pop. P_pop A:hover,.comeing_nv_pop .p_pop a.a< Span class= "br0" >{ background: #0E6A9C; color: #fff;}
.p_pop a {border-bottom:none< Span class= "sy0" >; }
.p_pop, .p_pof , .sllt {padding:0px }
.p_pop{border:0px }
.xl1 li {height:25px /span>

Drop-down menu

Attention

1, style color, width, spacing according to their own site modification;

2, please do not in the Forum default template above modification;

discuz! X3.2 navigation drop-down menu style modification

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.