挑战将图像转换为链接存在问题。
用户代理为: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
。
请描述如何重现此问题,并在可能的情况下包括指向屏幕截图的链接。
我的代码:
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.smaller-image {
width: 100px;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<a href="#"><img src="https://bit.ly/fcc-running-cats"></a>
<p>Click here for <a href="#">cat photos</a>.</p>
<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">
<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
感谢您报告@ mikerubino4000,但您的代码不正确,请咨询“帮助聊天室” 。
谢谢,祝您编码愉快!
说明还不足以应对这一挑战。 测试前应该有一条指示线。 遵循“将现有图像放置在锚点元素内”的思路会更好。
我们可能还想考虑更改第一个测试的描述,以便它不复制指令文本。
我可以将其作为对开源项目的第一份贡献。