设置锚点链接
- 命名锚记名
- <标记 id= “命名锚记名”></标记>
<a href = "#命名锚记名" ></a>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<style type="text/css">
* {margin: 0; padding: 0;}
img {display: block;}
.box {width: 500px; height: 350px; border: 1px #000 solid; margin: 50px auto; position: relative;}
.btn {position: absolute;right: 5px; bottom: 10px; }
.btn a {float: left; width: 30px;height: 30px; background: rgba(0,0,0,.5);
text-align: center; line-height: 30px; color: #fff; text-decoration: none; margin-right: 5px;}
.btn a:hover {background: rgba(0,0,0,1);}
.list {width: 500px; height:350px;overflow: hidden; }
</style>
<body>
<div class="box"