最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

disable menu collapseexpand function and make a menu item a static, unclickable text

programmeradmin4浏览0评论

In my side menu, I have this structure:

Home
Discussion
|- Topic 1
|- Topic 2
|- Topic ...
|- Topic N
About us

where Topic 1...N are sub-menu under "Discussion" and links to different pages. The item "Discussion" is just to represent the structure, it doesn't link to any page.

Now I can make the "Discussion" not link to any page by setting empty URL. However, user can click "Discussion" to collapse/expand the Topics 1...N items under "Discussion"

What I want is to disable such collapse/expand function for "Discussion" so that

  1. "Discussion" appears just as a static header text, and unclickable at all (even no hover color change effect)
  2. The subitems Topic 1..N is always displayed
  3. When user click "Discussion", it won't collapse the Topics 1..N items.

Any advise on how to do it?

发布评论

评论列表(0)

  1. 暂无评论