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