<分区>
在我的网站上, Logo 只会链接在底部。我相信这是因为导航阻止了它的链接。
我的网站是chattrd.com/htdocs .
我试过将 <div>
在<a>
里面标签,并放置 <div>
的一半在<a>
标签。这些解决方案均无效。
最佳答案
最简单的方法:
从
中移除position: relative
.navigation-primary_right {
position: relative;
text-align: right;
}
或者
将z-index:1
插入
.header_brand {
position: absolute;
}
但是我建议你不要使用position:absolute
。我会用类似的东西
.header_brand {
float: left;
}
.header-primary_container {
overflow: hidden;
position: relative; /* Optional */
}
关于html - 站点 Logo 上的链接仅在底部有效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18282446/