业务经理

微信扫描以上二维码

028-61286886

技术咨询

仿一个网站导航有三级的下拉菜单有两种样式

迅睿框架 更新 2022-05-06 10:05:15 梦翔网络


最近仿一个网站导航有三级的下拉菜单有两种样式(如下图)

imageimage

<div class="navigation_main">
            <div class="navigationlist_depth1">
                <div class="navigationlist_depth1_item">
                    <a href='{SITE_URL}' target="_self" class='channel1 depth1name current'>首页</a>
                </div>
                {category module=share pid=0 num=10}
                {if $t.child}
                <div class="navigationlist_depth1_item">
                    <a href='{$t.url}' target="_self" class='channel144 depth1name '>{$t.name}</a>
                    {category module=share pid=$t.id return=t2}
                    {if $t2.child}
                    <!-- 三级导航样式 -->
                    <div class="navigationlist_depth3_wrap">
                        <ul class="navigationlist_depth3">
                            {category module=share pid=$t.id return=a2}
                            <li class="navigationlist_depth3_item">
                                <span class="Depth2Title">{$a2.name}</span>
                                {category module=share pid=$a2.id return=a3}
                                <a href="{$a3.url}" target="_self">
                                    <span class="title">{$a3.name}</span>
                                </a>
                                {/category}
                            </li>
                            {/category}
                        </ul>
                    </div>
                    {else}
                    <!-- 二级导航样式 -->
                    <div class="navigationlist_depth2_wrap">
                        <ul class="navigationlist_depth2">
                            {category module=share pid=$t.id return=b2}
                            <li class="navigationlist_depth2_item">
                                <a class="n1" href="{$b2.url}" target="_self">
                                    <div class="ChannelName">{$b2.name}</div>
                                    <div class="ChannelSContent"></div>
                                </a>
                            </li>
                            {/category}
                        </ul>
                    </div> {/category}
                    {/if}
                </div>
                {else}<div class="navigationlist_depth1_item">
                <a href='{$t.url}' target="_self" class='channel150 depth1name '>{$t.name}</a></div>
                {/if}
                {/category}


方案

迅睿系统漏洞

AI文章生成器
AI文章生成器(2026-10-29)
任务插图设置数量
Bing站长数据
Bing站长数据(2026-10-29)
根据BING接口调整菜单 各个页面数据支持点击查看详情
泛解析站群系统
泛解析站群系统(2026-10-29)
AI队列增加清空按钮 表单提示语收敛 目录模式不接管主域名模板
域名授权系统
域名授权系统(2026-10-28)
后台增加前台访问地址链接
GeoSeo收录宝
GeoSeo收录宝(2026-10-28)
1 优化 BreadcrumbList 前端输出item细节 ...
自定义单页
自定义单页(2026-10-28)
增加批量设置url地址 URL规则和分页规则改为页面编辑界面 低...
友情链接
友情链接(2026-10-28)
用于网站友情链接的后台录入,前台提供调用代码,有网站标题、网站log...
关键词TAG
关键词TAG(2026-10-28)
[高级版]增加补录索引生成按钮 [高级版]针对建站系统高级版进行查询...
后台内容复制
后台内容复制(2026-10-28)
模块表单复制成功后返回到对应内容的表单列表中
问答插件
问答插件(2026-10-27)
问答插件基于官网「开源社区」功能分发而来,支持悬赏贴功能,微信通知。...