JavaScript简易网页计算器

本文介绍了一个使用JavaScript编写的网页计算器,该计算器具有时间显示功能。参考了CSDN上的相关文章,实现了计算器的交互与显示效果。
摘要由CSDN通过智能技术生成

带时间显示功能的网页计算器,显示效果如图:

显示效果

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>calculator</title>
    <style>
        .form{
   
            border: 2px solid gold;
            background-color: burlywood;
            width: 380px;
            height: 450px;
            border-radius: 20px;
            text-align: center;
            margin: auto;
        }
        .div1{
   
            margin-top: 38px;
            margin-bottom: 20px;
            margin-left: 40px;
            width: 300px;
            height: 40px;
            background-color:white;
            text-align: left;
            font-size: 35px;
            line-height: 40px;
            border-radius: 4px;
        }
        .time{
   
            border: 1px solid darkkhaki;
            width: 215px;
            height: 45px;
            font-size: 20px;
            text-align: center;
            border-radius: 4px;
            background-color: palegoldenrod;
        }
        .button{
   

            background-color: gold;
            width: 70px;
            height: 45px;
            border-radius: 10px;
            text-align: center;
            font-size: 20px;
            border: 1px solid darkkhaki;
        }
    </style>
</head>
<body>

<form class="form">

<div class="div1">

<span class="text" id="text">0
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值