gpt4 book ai didi

html - href 链接不适用于图像

转载 作者:太空宇宙 更新时间:2023-11-04 12:00:05 25 4
gpt4 key购买 nike

我需要一点帮助...我不明白为什么我的图片链接不起作用...我一直在寻找这么久,但我找不到它不起作用的原因!请帮我...非常感谢!

.container {
width: 80%;
max-width: 1240px; /*maks bredde*/
min-height: 500px;
margin: 0 auto; /*midtstiller container og setter den øverst*/
}


header {
background-color: #292929;
width: 80%;
position: fixed;
margin-top: 5px;
}


header img{
width: 8%;
float: left;
margin-left: 20px;
margin-top: 15px;
margin-bottom: 15px;
height: 4%;
}


#navlogoer {
width: 40%;
margin-left: 75%;
margin-top: -65px;
}
<div class="container">

<header>
<a href="index.html">
<img src="images/Opheimlogooransje.png" alt="opheim logo"/></a>
<nav id="navlogoer">
<a href="https://itunes.apple.com/no/album/summerbeach-feat.-tiril-sundf/id981300584?i=981300598&uo=6&at=&ct=">
<img src="images/ITuneslogocroped.png" alt="Itunes logo"/></a>
<a href="https://open.spotify.com/artist/0VaCp9BRPhNezjr5Z3va5l">
<img src="images/Spotifylogocroped.png" alt="Spotify logo"/></a>
<a href="https://www.youtube.com/channel/UCohhdrYONwzIeMW61Ibgszw/feed">
<img src="images/youtubelogocroped.png" alt="Youtube logo"/></a>
<a href="https://soundcloud.com/jesperopheim">
<img src="images/Soundcloudlogocroped.png" alt="Soundcloud"/></a>
<a href="https://no.7digital.com/artist/opheim/">
<img src="images/7digitallogocroped.png" alt="7digital logo"/></a>
</nav>
</header>

</div>

最佳答案

根据您的问题,所有链接都工作正常。实际上,将图像制作为链接的正确语法如下:

<pre><code><a href="#"><img src="" alt="" /></a></code></pre>

关于html - href 链接不适用于图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29891328/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com