案例-分页按钮(CSS3)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>案例-分页按钮</title>
<style>
li {
float: left;
width: 30px;
height: 30px;
border: 1px solid skyblue;
text-align: center;
line-height: 30px;
list-style: none;
margin: 10px;
border-radius: 50%;
/* 圆圈 */
cursor: pointer;
/* 鼠标经过的时候变为小手 */
/* 过渡 */
transition: all 0.4s;
}
li:hover {
transform: scale(1.2);
}
</style>
</head>
<body>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
</ul>
</body>
</html>