点击查看html编辑器说明文档

新拟物风格按钮设计 - 纯CSSedit icon

|
|
Fork(复制)
|
|

👉 新版编辑器已上线,点击进行体验吧!

BUG反馈
嵌入
设置
下载
HTML
格式化
支持Emmet,输入 p 后按 Tab键试试吧!
<head> ...
展开
</head>
<body>
            
            <button class="btn">按钮</button>
<button class="btn">按钮</button>

        
</body>
CSS
格式化
            
            body {
  font-family: sans-serif;
  background: rgb(214, 214, 214);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.btn {
  min-width: 150px;
  padding: 15px 10px;
  margin: 20px;
  background: rgb(214, 214, 214);
  border: none;
  border-radius: 25px;
  color: rgb(50, 207, 207);
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: -7px -7px 20px 0 rgba(255, 255, 255, 0.7),
    7px 7px 20px 0 rgba(0, 0, 0, 0.2);
}

.btn:hover {
  box-shadow: inset -7px -7px 20px 0 rgba(255, 255, 255, 0.7),
    inset 7px 7px 20px 0 rgba(0, 0, 0, 0.2);
}

        
JS
格式化
            
            
        
预览
控制台