5.7织梦下拉列表出错,二级菜单跑偏。求高手指教 50
按照网友说的在footer.htm中加入<scripttype='text/javascript'src='{dede:global.cfg_cmsurl/}/image...
按照网友说的在footer.htm中加入
<script type='text/javascript' src='{dede:global.cfg_cmsurl/}/images/js/dropdown.js'></script>
{dede:channelartlist typeid='top' cacheid='channelsonlist'}
<ul id="dropmenu{dede:field.typeid/}" class="dropmenu">
{dede:channel type='son' noself='yes'}
<li><a href="[field:typelink/]">[field:typename/]</a></li>
{/dede:channel}
</ul>
{/dede:channelartlist}
<script type="text/javascript">cssdropdown.startchrome("navMenu")</script>
然后复制mmenubg.gif进入/templets/default/images。我的head.htm这么写:
<div class="nav">
<div class="anvmain">
<div class="navMenu">
<ul>
<li><a href="{dede:global.cfg_cmsurl/}/">首页</a></li>
{dede:channel row="10" type="top" col="1" currentstyle="<li><a href='~typelink~' class='dianji' rel='dropmenu~id~'><span>~typename~</span></a></li>" }
<li><a href='[field:typeurl/]' rel="dropmenu[field:id/]"><span>[field:typename/]</span></a></li>
{/dede:channel}
</ul>
</div>
</div>
</div>
结果2级菜单左下角排一排。 展开
<script type='text/javascript' src='{dede:global.cfg_cmsurl/}/images/js/dropdown.js'></script>
{dede:channelartlist typeid='top' cacheid='channelsonlist'}
<ul id="dropmenu{dede:field.typeid/}" class="dropmenu">
{dede:channel type='son' noself='yes'}
<li><a href="[field:typelink/]">[field:typename/]</a></li>
{/dede:channel}
</ul>
{/dede:channelartlist}
<script type="text/javascript">cssdropdown.startchrome("navMenu")</script>
然后复制mmenubg.gif进入/templets/default/images。我的head.htm这么写:
<div class="nav">
<div class="anvmain">
<div class="navMenu">
<ul>
<li><a href="{dede:global.cfg_cmsurl/}/">首页</a></li>
{dede:channel row="10" type="top" col="1" currentstyle="<li><a href='~typelink~' class='dianji' rel='dropmenu~id~'><span>~typename~</span></a></li>" }
<li><a href='[field:typeurl/]' rel="dropmenu[field:id/]"><span>[field:typename/]</span></a></li>
{/dede:channel}
</ul>
</div>
</div>
</div>
结果2级菜单左下角排一排。 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏50(财富值+成长值)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询