<style>
.menudiv{display:block;width:100%;height:50px;margin:0 auto;position:relative;z-index:20;background:#333333}
.topnavmain{display:block;width:1000px;height:50px;margin:0px auto;}
.menuli{display:block;width:111px;height:50px;float:left;position:relative;}
.menulion,.menuli:hover{ background:#F57720;color:#fff; font-weight:bold}
.menuli+.menuli>a{background-image:url(/Images/navline.gif)//见附件;background-position:left center;background-repeat:no-repeat;}
.menuli a{display:block;width:100%;height:100%;overflow:hidden;font-size:14px;color:#fff;text-decoration:none;line-height:50px;text-align:center}
.subnavdiv{display:none;position:absolute;width:100%;}
.submenu{background:#F57720}
.submenu>li{height:40px;line-height:10px; border-bottom:1px #F8A46A dotted; font-weight:100}
.submenu>li:hover{background-color:#636363;height:45px;line-height:40px;color:#fff; font-weight:bold}
.menuli:hover .subnavdiv{display:block;}
</style>
<div class="menudiv">
<div class="topnavmain">
<ul>
<li {dede:field name=typeid runphp="yes"}(@me=="'")? @me="class='menuli menulion' ":@me="class='menuli'";{/dede:field}><a href="/" title="首页">网站首页
{dede:channelartlist typeid='top' row='8' currentstyle='menulion'}
<li class='menuli {dede:field.currentstyle/}'><a href='{dede:field name='typeurl'/}' title="{dede:field name='typename'/}">{dede:field name='typename'/}
<div class='subnavdiv'>
<ul class='submenu'>
{dede:channel type='son' noself='yes'}
<li><a href='[field:typelink/]' title="[field:typename/]">[field:typename/]</li>
{/dede:channel}
<div class='clear'><div></div></ul>
<div class='subnavfoot'><div></div>{/dede:channelartlist}