wordpress默认菜单代码
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了wordpress默认菜单代码相关的知识,希望对你有一定的参考价值。
default theme perfect menu
<style type="text/css"> /* =Menu ---------------------- ---------------------------------------- */ #access { background: #000; display: block; float: left; margin: 0 auto; width: 940px; } #access .menu-header, div.menu { font-size: 13px; margin-left: 12px; width: 928px; } #access .menu-header ul, div.menu ul { list-style: none; margin: 0; } #access .menu-header li, div.menu li { float: left; position: relative; } #access a { color: #aaa; display: block; line-height: 38px; padding: 0 10px; text-decoration: none; } #access ul ul { box-shadow: 0px 3px 3px rgba(0,0,0,0.2); -moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2); -webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2); display: none; position: absolute; top: 38px; left: 0; float: left; width: 180px; z-index: 99999; } #access ul ul li { min-width: 180px; } #access ul ul ul { left: 100%; top: 0; } #access ul ul a { background: #333; line-height: 1em; padding: 10px; width: 160px; height: auto; } #access li:hover > a, #access ul ul :hover > a { background: #333; color: #fff; } #access ul li:hover > ul { display: block; } #access ul li.current_page_item > a, #access ul li.current-menu-ancestor > a, #access ul li.current-menu-item > a, #access ul li.current-menu-parent > a { color: #fff; } * html #access ul li.current-menu-ancestor a, * html #access ul li.current-menu-item a, * html #access ul li.current-menu-parent a, * html #access ul li a:hover { color: #fff; } </style> <div id="access" role="navigation"> <div class="menu"> <ul> <li class="current_page_item"><a href="#" title="Home">Home</a></li> <li class="page_item page-item-2489"><a href="#">Contribute</a> <ul class='children'> <li class="page_item page-item-17"><a href="#">History</a></li> <li class="page_item page-item-12"><a href="#">Our Company</a></li> <li class="page_item page-item-14"><a href="#">Our Staff</a> <ul class='children'> <li class="page_item page-item-29"><a href="#">Employment Opportunities</a></li> </ul> </li> </ul> </li> <li class="page_item page-item-46"><a href="#">About</a> <ul class='children'> <li class="page_item page-item-17"><a href="#">History</a></li> <li class="page_item page-item-12"><a href="#">Our Company</a></li> <li class="page_item page-item-14"><a href="#">Our Staff</a> <ul class='children'> <li class="page_item page-item-29"><a href="#">Employment Opportunities</a></li> </ul> </li> </ul> </li> <li class="page_item page-item-2485"><a href="">About Corky</a></li> <li class="page_item page-item-23"><a href="#">Contact Us</a> <ul class='children'> <li class="page_item page-item-27"><a href="#">Our Location</a></li> </ul> </li> <li class="page_item page-item-2493"><a href="#">Contact/links</a></li> <li class="page_item page-item-2491"><a href="#">Events/Press</a></li> <li class="page_item page-item-21"><a href="#">Links</a></li> <li class="page_item page-item-2487"><a href="#">My Platform</a></li> <li class="page_item page-item-25"><a href="#">News</a> <ul class='children'> <li class="page_item page-item-17"><a href="#">History</a></li> <li class="page_item page-item-12"><a href="#">Our Company</a></li> <li class="page_item page-item-14"><a href="#">Our Staff</a> <ul class='children'> <li class="page_item page-item-29"><a href="#">Employment Opportunities</a></li> </ul> </li> </ul> </li> <li class="page_item page-item-2527"><a href="#">photos</a></li> <li class="page_item page-item-19"><a href="#">Support</a></li> </ul> </div> </div> <!-- #access -->
以上是关于wordpress默认菜单代码的主要内容,如果未能解决你的问题,请参考以下文章
Wordpress - 将代码片段包含到布局的选定部分的插件
markdown 在WordPress中使用jQuery代码片段
PHP WordPress条件为主页SlideDeck主题代码片段