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', serif; text-shadow: 0 0 2px rgba(255, 255, 255, .2); } .calculator__title { margin: 0 0 -4px; font-size: 25px; } .calculator__subtitle { margin: 0; font-size: 18px; } .calculator__sun-battery-container { border-radius: 3px; border-right: 1px solid rgba(255, 255, 255, .2); } .calculator__sun-battery { width: 107px; height: 30px; border-radius: 3px; background-color: #3d2115; box-shadow: 0 -3px 5px -3px rgba(255, 255, 255, .2), 5px 0 3px -5px rgba(255, 255, 255, .8), 0 2px 5px -2px rgba(0, 0, 0, .5), -3px 0 3px -1px rgba(0, 0, 0, .8), inset 0 -5px 3px -3px rgba(0, 0, 0, .5), inset 5px 0 5px -2px rgba(0, 0, 0, .8); background-image: repeating-linear-gradient(to right, transparent, transparent 26px, rgba(255, 255, 255, .1) 26px, rgba(255, 255, 255, .1) 27px); /* box-shadow: inset 0 0 3px 0 rgba(0, 0, 0, .5); */ } .calculator__screen-container { position: relative; margin: 20px 0; border-radius: 5px; border-right: 1px solid rgba(255, 255, 255, .2); } .calculator__screen { background-image: linear-gradient(.........完整代码请登录后点击上方下载按钮下载查看
网友评论0