【发布时间】:2020-10-24 16:22:43
【问题描述】:
我不明白为什么当我将鼠标悬停在我的徽标上时,它没有链接到着陆页。
HTML:
<body>
<header>
<a href="landing.html">
<img src="img/typeface.png" alt="logo" class="headerlogo">
</a>
</header>
<img src="img/wave.png" alt="wave" draggable="false" class="wave">
</body>
CSS:
body {
margin: 0;
padding: 0;
background-color: #121420;
font-family: 'Montserrat', sans-serif;
}
header {
display: flex;
}
.headerlogo {
width: 10%;
height: 55%;
margin-left: 5%;
padding-top: 35px;
}
.wave {
position: absolute;
width: 100%;
bottom: 0;
left: 0;
}
我看到其他帖子说 z-index 是问题,但我的 css 中没有 z-index。
【问题讨论】:
标签: html css hyperlink tags href