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.
我有一个 Wordpress 博客,主题使用 CSS 来制作链接。在主页上它们可以工作,但在其他页面上它不起作用。我不是 CSS 专家,所以我无法找出原因。任何人都可以看看,看看也许我错过了什么?
删除此 css 规则,因为它会使您的导航栏#access折叠,因此它的高度不会与其父节点相加<header>。
#access
<header>
#access{float:left}
您的问题是您的 div 的 idmain浮动在导航栏的内容上。给它一个css风格的规则来margin-top: 45px;解决这个问题。
main
margin-top: 45px;