div+css布局实现清爽手机屏幕键盘效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css布局实现清爽手机屏幕键盘效果代码

代码标签: div css 布局 清爽 手机 屏幕 键盘

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
<style>
    body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 97vh;
  background: #00BCD4;
}
span {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.base {
  border-radius: 10px;
  background: #272B2C;
  display: flex;
  width: 700px;
  height: auto;
  flex-direction: column;
  padding: 30px 15px;
  font: 28px arial;
  box-shadow: 0px 40px 45px rgba(0, 0, 0, .4);
}

div[class*='line'] {
  display: flex;
  justify-content: space-around;
}

div[class*='line'] + div[class*='line'] {
  margin-top: 15px;
}

.line1,
.line3 {
  padding: 0 15px;
}

.line2 {
  padding: 0 30px;
}

div[class*='line'] span {
  box-shadow: 0px 3px 3px rgba(0, 0, 0, .7);
  color: #71D4FE;
  padding: 15px;
  background: #2F3336;
  border-radius: 12px;
  text-shadow: 0px 0px 40px #71D4FE, 0px 0px 80px #71D4FE;
  width: 25px;
  text-align: center;
}

div[class*=.........完整代码请登录后点击上方下载按钮下载查看

网友评论0