| 12345678910111213141516171819202122232425262728 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <style>
- .box{
- width: 100px;
- height: 100px;
- background-color: blue;
- margin: 100px auto;
- border-radius: 50%;
- }
- .box:hover{
- /* width: 200px;
- height: 200px; */
- /* scale 缩放 以当前元素中心点进行缩放 取值范围大于0 大于一为放大比例 小于一为缩小比例 */
- /* transform: scale(0.5); */
- /* scaleX 横向缩放 scaleY 纵向缩放 */
- /* transform: scaleX(2); */
- }
- </style>
- </head>
- <body>
- <div class="box"></div>
- </body>
- </html>
|