div+css实现Aqua风格立体按钮代码

代码语言:html

所属分类:布局界面

代码描述:div+css实现Aqua风格立体按钮代码

代码标签: div css Aqua 风格 立体 按钮 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
<style>
@import url(https://fonts.googleapis.com/css?family=Inter);
* {
  border-style: solid;
  border-width: 0;
  box-sizing: border-box;
}

button {
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
  color: inherit;
  font: inherit;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
  text-align: inherit;
  text-transform: inherit;
  -webkit-tap-highlight-color: transparent;
}

:focus {
  outline-style: solid;
  outline-color: transparent;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #eeeff3;
  background-image: linear-gradient(to bottom, #dbe6f2, #bed8f2);
  font-family: "SF Pro", "Inter", system-ui, sans-serif;
}

.button {
  margin: 3px;
  cursor: pointer;
}

.button.a {
  border: 1px solid #0360df;
  border-radius: 50px;
  padding: 12px 16px;
  background-color: #0360df;
  background-image: radial-gradient(75% 50% at 50% 0%, #f4feff 12%, transparent), radial-gradient(75% 50% at 50% 85%, #8de3fc, transparent);
  box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, 0.2), 0 1px 4px 1px rgba(17, 110, 231, 0.2), 0 1px 4px 1px rgba(0, 0, 0, 0.1);
  color: #fff;
  text-shadow: 0 1px 1px #116ee7;
  transition-property: border-color, transform, background-color;
  transition-duratio.........完整代码请登录后点击上方下载按钮下载查看

网友评论0