CSS transform 示例
html公开前 25 行,完整代码需登录
<!DOCTYPE html>
<html>
<head>
<title>CSS transform 示例</title>
<style type="text/css">
.container {
display: flex;
flex-wrap: wrap;
gap: 20px;
padding: 20px;
}
.box {
width: 100px;
height: 100px;
background-color: #3498db;
margin: 10px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
cursor: pointer;
transition: transform 0.3s ease;
}