简单计算器效果

代码语言:html

所属分类:布局界面

代码描述:简单计算器效果

代码标签:

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@300;400;600&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet" />
<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  font-family: "Open Sans", sans-serif;
  user-select: none;
}

body {
  background: #394965;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 5px;
  width: 320px;
  position: relative;
  box-shadow: 0 0 60px rgba(143, 205, 255, .5);
}

.fa-history {
  position: absolute;
  left: 9px;
  top: 9px;
  color: #58b3ff;
  transition: 300ms ease-out;
  z-index: 3;
  padding: 12px;
  opacity: .7;
}

.fa-history:hover {
  opacity: 1;
}

.fa-history-toggle {
  color: white;
}

#op-history-container {
  position: absolute;
  top: 0;
  height: 29%;
  width: 100%;
  background: rgba(88, 179, 255, .925);
  z-index: 1;
  border-radius: 5px 5px 0 0;
  padding: 12px 36px;
  text-align: right;
  overflow: auto;
  transition: all 300ms ease-out;
}

#op-history-container::-webkit-scrollbar {
  width: 9px;
  background: white;
  border-radius: 10px 10px 0 0;
}
 
#op-history-container::-we.........完整代码请登录后点击上方下载按钮下载查看

网友评论0