<!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>Document</title>
<style>
li{
float: left;
width: 30px;
height: 30px;
list-style: none;
border: 1px solid black;
text-align: center;
/* 设置行高 */
line-height: 30px;
/* 设置为圆角 */
border-radius: 50%;
/* 设置外边距 margin */
margin: 15px;
transition: all 0.2s;
}
/* 鼠标经过 实现缩放 */
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>
实现分页按钮的缩放效果
最新推荐文章于 2024-08-19 12:23:25 发布