motionsites中文站 / 按钮 · Sharp Dodo
按钮 · Sharp Dodo
aadmin2026-09-19 发布组件0 阅读

按钮 · Sharp Dodo

类型:组件 · 分类:按钮 · 收录:2026-09-19 · 源码:会员可见

[hidecontent type="vip1"]
<button class="button">
  Click Me
</button>
<style>
/* From Uiverse.io by laminelawal - Tags: button, 3d button */
button {
  border-radius: 30px;
  border: none;
  cursor: pointer;
  outline: none;
  width: 150px;
  height: 54px;
  background-image: linear-gradient(to top, #222 0%, #333 80%, #444 100%);
  color: white;
  font-size: 20px;
  font-weight: 400;
  font-family: monospace;
  transition: all 0.3s;
  text-shadow: 0 4px 3px black;
}

button:hover {
  box-shadow: 0 4px 3px 1px #333, 0 6px 8px #222, 0 -4px 4px #222, 0 -6px 4px #333, inset 0 0 3px 3px black;
}

button:active {
  box-shadow: 0 4px 3px 1px #333, 0 6px 8px #222, 0 -4px 4px #222, 0 -6px 4px #333, inset 0 0 3px 3px black;
}

button:focus {
  box-shadow: 0 4px 3px 1px #333, 0 6px 8px #222, 0 -4px 4px #222, 0 -6px 4px #333, inset 0 5px 7px 0   black;
}

</style>
[/hidecontent]
← 返回首页