Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个下拉菜单。在此菜单中,如果有父页面,则第一个链接将变为不可点击。它应该充当链接。检查页面
http://www.deletedurl.com/wp/
正如您在“关于我们”页面上看到的那样,它是不可点击的。它有什么问题?
当子菜单 ul 变得可见时,它被放置在父 li 的顶部,这就是它变得不可点击的原因。修改 style.css 如下,它应该可以正常工作。
Style.css(第 67 行)
#navigation ul { padding-top: 10px; }
Style.css(第 170 行)
#navigation ul li ul { margin-top: -10px; }
截屏