WordPress 中的导航文本重叠
我正在使用 WordPress 的白板主题。
我的导航与标题的右侧对齐,但是导航文本重叠,导航中的两种墨水在标题上相互重叠。知道为什么吗?
#nav-primary {
clear: both;
width: 100%;
padding: 0 10px;
}
#nav-primary ul,
#nav-primary li {
list-style: none;
}
#nav-primary a {
position: absolute;
right: 0;
padding: 10px;
width: auto;
/*bottom: auto;*/
}
Im using the whiteboard theme for wordpress.
My navigation is aligned to the right hand side of my header, however the navigation text is overlapping, the two inks in the navigation overlap each other on the header. any idea why?
#nav-primary {
clear: both;
width: 100%;
padding: 0 10px;
}
#nav-primary ul,
#nav-primary li {
list-style: none;
}
#nav-primary a {
position: absolute;
right: 0;
padding: 10px;
width: auto;
/*bottom: auto;*/
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用 z-index:99;或者如果您使用绝对位置,则创建一个相对 div id。
try using z-index:99; or create a relative div id if you are using position absolute.
看来
position:absolute
在这里对你没有任何好处。尝试删除这个。您还可能从基本列表样式继承了不需要的样式,但如果没有看到整个 CSS 文件,我们将无法确定这一点。
It seems that
position: absolute
is doing you no favours here. Try removing this.You also might be inheriting undesirable styles from your basic list style, but without seeing the whole CSS file we won't be able to determine that.