纯净css布局按钮

代码语言:html

所属分类:布局界面

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
*:focus,
*::before:focus,
*::after:focus {
  outline: none;
}
*::-webkit-input-placeholder,
*::before::-webkit-input-placeholder,
*::after::-webkit-input-placeholder {
  color: #222;
}
*::-moz-placeholder,
*::before::-moz-placeholder,
*::after::-moz-placeholder {
  color: #222;
}

body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f2f2f2;
}

.icons {
  display: none;
}

button {
  border: 0;
}
button:focus {
  border: none;
  outline: 0 !important;
  outline-style: none;
}

.container {
  width: 550px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.container .btn {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f2f2f2;
  transition: all 100ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0px -6px 10px white, 0px 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.container .btn:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0