分享页内跳转(锚点练习)的实例代码,只是一个小练习,大神不喜请不要喷,新手朋友们可以来看看我写的;
代码如下:
<!DOCTYPE html>
<html
lang
="en">
<
head
>
<meta char
set
="UTF-8">
<title>
Document
</title>
<style>
body{
height
: 2000px;
position
: relative;
}
.a{
position: absolute;
bottom
: 0px;
}
</style>
</head>
<body>
<a href="http://www.sina.com"><a href="#db">杩斿洖搴曢儴</a></a>
<hr />
<br />
<img src="images/1.jpg" alt="濂ヨ开R8">
<p class="a" id="db"><a href="#last"><a href="#">杩斿洖椤堕儴</a></a></p>
</body>
</html>【相关推荐】
1. 免费html在线视频教程
2. html开发手册
以上就是页内跳转(锚点练习)的实例代码的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号