代码部分:
{if $r[arrchildid]} {pc:content action=”category” catid=”$r[catid]” num=”10″ siteid=”$siteid” order=”listorder asc” return=”data2″} {loop $data2 $v} {/loop} {/pc} {/if}
css:
.drop-nav span{ border-top: 1px solid #a9b7c5; } .drop-nav-child{ display: block; width: 90px; height: 38px; padding-top: 8px!important; margin: auto; background-color: #fff; } .drop-nav { display: none!important; padding: 0px 0px!important; } li:hover .drop-nav{ display: block!important; }
总结:主要实现调用二级菜单栏,以及鼠标经过显示功能;