css+js实现cl001科学计算器运算效果

代码语言:html

所属分类:布局界面

代码描述:css+js实现cl001科学计算器运算效果

代码标签: 科学 计算器 运算 效果

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


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

<link href="https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@700&family=Share+Tech+Mono&family=Slabo+27px&display=swap" rel="stylesheet">
<style>
.body {
  padding: 0;
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(to top, #09203f 0%, #537895 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

.calculator {
  width: 300px;
  min-width: 300px;
  box-sizing: border-box;
  padding: 20px 25px 45px;
  background: radial-gradient(ellipse farthest-corner at 20% 65%, #525864, #130f0e);
  color: rgba(255, 255, 255, .8);
  font-family: 'Overpass Mono', monospace;
  border-top-left-radius: 100% 30px;
  border-top-right-radius: 100% 30px;
  border-bottom-left-radius: 100% 60px;
  border-bottom-right-radius: 100% 60px;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .7),
    0 0 20px 0 rgba(0, 0, 0, .5),
    0 0 25px 0 rgba(0, 0, 0, .3),
    10px 0 4px 10px rgba(0, 0, 0, .3),
    inset 0 0 3px 0 rgba(0, 0, 0, .7),
    inset 0 0 10px 0 rgba(0, 0, 0, .5),
    inset 0 -25px 5px 0 rgba(0, 0, 0, .2),
    inset 0 -5px 10px 0 rgba(255, 255, 255, .3);
}

.calculator__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calculator__heading {
  font-family: 'Slabo 27px', seri.........完整代码请登录后点击上方下载按钮下载查看

网友评论0