Freecodecamp: 将图像变成链接

创建于 2016-06-28  ·  5评论  ·  资料来源: freeCodeCamp/freeCodeCamp

挑战将图像转换为链接存在问题。
用户代理为: 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>

first timers only help wanted

所有5条评论

感谢您报告@ mikerubino4000,但您的代码不正确,请咨询“帮助聊天室”

谢谢,祝您编码愉快!

说明还不足以应对这一挑战。 测试前应该有一条指示线。 遵循“将现有图像放置在锚点元素内”的思路会更好。

我们可能还想考虑更改第一个测试的描述,以便它不复制指令文本。

谢谢@ arun1595,我同意,一个简单的更改将使指令更加清晰。
第一条文字指令虽然还可以

你去的初学者

在此之后添加

将现有图像元素放置在锚点元素内。

我可以将其作为对开源项目的第一份贡献。

@RyanWillDev太棒了,如果您需要任何帮助,请查看贡献准则,并与贡献者聊天室联系

此页面是否有帮助?
0 / 5 - 0 等级