FCC学习笔记(一)

除了像素,你还可以使用百分比来指定border-radius边框半径的值。

给你的猫咪图片一个50%border-radius

a元素,也叫anchor(锚点)元素,既可以用来链接到外部地址实现页面跳转功能,也可以链接到当前页面的某部分实现内部导航功能。

下面是一张a元素的图示。a元素位于段落元素的中间,这意味着链接会出现在段落的中间。

a diagram of how anchor tags are composed with the same text as on the following line

这有一个例子:

<p>Here's a <a href="http://freecodecamp.cn"> link to FreeCodeCamp中文社区 </a> for you to follow.</p>

任务:创建一个链接到http://freecatphotoapp.coma元素,并用cat photos作为其anchor text(锚点文本)

<a href="http://freecatphotoapp.com">cat photos</a>

猜你喜欢

转载自www.cnblogs.com/leecoffee/p/9261170.html