<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="x-ua-compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Title</title>
</head>
<style>
.fg{
margin: 700px;
}
</style>
<body>
<h3 id="t">a标签的定向跳转</h3>
<ul>
<li id="one">跳转一</li>
<li class="two">跳转二</li>
<li id="three">跳转三</li>
<li name="fofo">跳转四</li>
</ul>
<p class="fg"></p>
<a href="http://t.zoukankan.com/.one">>>>>跳到一</a> #404 Not Found
<hr>
<a href="http://t.zoukankan.com/.two">>>>>跳到二</a> #404 Not Found
<hr>
<a href="https://tool.4xseo.com/article/71901.html">>>>>跳到三</a> #成功跳转
<hr>
<a href="https://tool.4xseo.com/article/71901.html">>>>>跳到一</a> #成功跳转
</body>
</html>
总结:a标签在同一页面实现定向跳转,只能用id作为href实现
使用a标签实现页面的定向跳转
免责声明:文章转载自《使用a标签实现页面的定向跳转》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇在WIN10上安装ESXI-Comstomer (转自技术社区)Android随笔之——模拟按键操作的几种方式下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=