<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>缩放之分页按钮</title>
<style>
li {
float: left;
margin: 10px;
width: 30px;
height: 30px;
text-align: center;
line-height: 30px;
list-style: none;
border: 1px solid pink;
border-radius: 50%;
/* 鼠标变小手 */
cursor: pointer;
transition: all 0.4s;
}
li:hover {
transform: scale(1.1);
}
</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>
CSS3_缩放案例
最新推荐文章于 2022-12-02 22:44:19 发布