Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.9k views
in Technique[技术] by (71.8m points)

layUI水平导航菜单下的横条如何控制?

image
比方说我点击解决方案下的三个子模块,异步更新页面,如何让那个绿色的横条始终在解决方案下显示


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

在选中的<li class="layui-nav-item">中添加class为layui-nav-itemed,表明已选中,同时剔除兄弟li中layui-nav-itemed class样式。
对于解决方案下拉的菜单
在dd中添加class为layui-this表明选中


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...