javascript实现计算机

网站前端开发 软件 app开发设计前端开发工具 web前端开发工具排行榜

html 代码

<!DOCTYPE html>
<html lang=”en”>
<head>
    <meta charset=”UTF-8″>
    <title>计算机</title>
    <link href=’http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400′ rel=’stylesheet’ type=’text/css’>
    <style>
        html {
            background: #100a1c;
            background-image: -webkit-radial-gradient(50% 30% ellipse at center top, #201e40 0%, rgba(0, 0, 0, 0) 100%), -webkit-radial-gradient(60% 50% ellipse at center bottom, #261226 0%, #100a1c 100%);
            background-image: radial-gradient(50% 30% ellipse at center top, #201e40 0%, rgba(0, 0, 0, 0) 100%), radial-gradient(60% 50% ellipse at center bottom, #261226 0%, #100a1c 100%);
            background-attachment: fixed;
            color: #6cacc5;
        }
        body {
            color: #6cacc5;
            font: 300 18px/1.6 “Source Sans Pro”, sans-serif;
            margin: 0;
            padding: 5em 0 2em;
            text-align: center;
        }
        h1 {
            font-weight: 300;
            margin: 0;
        }
        /* Gradient text only on Webkit */
        .warning {
            background: -webkit-linear-gradient(45deg, #c97874 10%, #463042 90%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            color: #8c5059;
            font-weight: 400;
            margin: 0 auto 6em;
            max-width: 9em;
        }
        .calculator {
            font-size: 28px;
            margin: 0 auto;
            width: 10em;
        }
        .calculator::before,
        .calculator::after {
            content: ” “;
            display: table;
        }
        .calculator::after {
            clear: both;
        }
        /* Calculator after dividing by zero */
        .broken {
            -webkit-animation: broken 2s;
            animation: broken 2s;
            -webkit-transform: translate3d(0, -2000px, 0);
            transform: translate3d(0, -2000px, 0);
            opacity: 0;
        }
        .viewer {
            color: #c97874;
            float: left;
            line-height: 3em;
            text-align: right;
            text-overflow: ellipsis;
            overflow: hidden;
            width: 7.5em;
            height: 3em;
        }
        button {
            border: 0;
            background: rgba(42, 50, 113, 0.28);
            color: #6cacc5;
            cursor: pointer;
            float: left;
            font: inherit;
            margin: 0.25em;
            width: 2em;
            height: 2em;
            -webkit-transition: all 0.5s;
            transition: all 0.5s;
        }
        button:hover {
            background: #201e40;
        }
        button:focus {
            outline: 0;
            /* The value fade-ins that appear */
        }

前端mac开发软件 web前端开发软件工具下 上海软件开发前端学校

» 本文来自:前端开发者 » 《javascript实现计算机》
» 本文链接地址:https://www.rokub.com/5380.html
» 您也可以订阅本站:https://www.rokub.com
赞(0)
64K

评论 抢沙发

评论前必须登录!