CSS transform 示例

CSS transform1 个文件更新于 2026-04-06
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;
    }

登录后可以查看完整源码、在线编辑并实时预览运行效果。