<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<!--<!–href 属性 要跳转的链接/地址–>-->
<!--<a href="https://www.baidu.com" >百度一下</a> <br>-->
<!--<!– target="_blank" 新打开一个页面; 默认在当前页面打开链接–>-->
<!--<a href="https://www.baidu.com" target="_blank">百度一下</a>-->
<!--# 锚点,定位作用-->
<a href="#p01">跳到1</a>
<a href="#p02">跳到2</a>
<a href="#p03">跳到3</a>
<a href="#p04">跳到4</a>
<a href="#p05">跳到5</a>
<p id="p01" style="height: 800px; background: red;">1</p>
<p id="p02" style="height: 800px; background: yellow;">2</p>
<p id="p03" style="height: 800px; background: green;">3</p>
<p id="p04" style="height: 800px; background: blue;">4</p>
<p id="p05" style="height: 800px; background: deeppink;">5</p>
</body>
</html>
05-a标签--超链接
猜你喜欢
转载自blog.csdn.net/return_min/article/details/103820948
今日推荐
周排行