codecamp

HTML 在p标签内设置锚链接

<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>


<p>View more <a href="http://www.freecatphotoapp.com">cat photos</a></p>


<img class="smaller-image thick-green-border" src="https://7n.w3cschool.cn/statics/codecamp/images/relaxing-cat.jpg">


<p class="red-text">在大家心目中,也许编程是一件非常困难的事情,其实也是一件非常有乐趣的事情,只要掌握好编程入门的方法,就能慢慢进入一个全新的创造世界。</p>
<p class="red-text">可以学习的编程语言有很多,我们这个编程训练营里面有大量的编程实战实验,包括Html、css、Javascript、jquery、bootstrap等等前端编程实战课程,请大家耐心按阶段不断向前学习和通过一轮一轮的挑战,相信很快您的编程技术会得到很大的提升,为找到一份好的编程工作做好准备。</p>

HTML 设置链接锚元素外部页面
HTML 使用#符合设置固定链接
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定