首页 前端知识 web网页设计-计算器HTML5 CSS JS

web网页设计-计算器HTML5 CSS JS

2024-08-12 10:08:36 前端知识 前端哥 847 660 我要收藏

网页设计-简易版计算器HTML5 CSS JS

标题效果如图:

5*9
等于45

代码:

HTML搭建整体框架,CSS排列布局,JS实现相应的计算器功能

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>计算器</title>
    
    <style>  /*CSS*/
        div{
     
            width: 270px;
            height: 390px;
            background-color:#c1c1c1;
            position: fixed;
            border-radius: 18px;
            left: 40px;
            top: 80px;
            border:solid 1px #000;
        }
        input{
     
            height: 37px;
            width: 200px;
            position: relative;
            left: 30px;
            top: 30px;
            font-size: 16px;
            border-radius: 8px;
        }
        td{
     
            padding: 5px;
            position: relative;
            left: 20px;
            top: 40px;
        }
        button{
     
            width: 45px;
            height: 45px;
            border:solid 1px #000;
            border-radius: 18px;
            font-size: 20px;
            font-weight: 100;
            background-color: #fff;
        }
    </style>
</head>
<body>
    <div>
        <table>
            <tr><input type="text"></tr>
            <tr>
                <td><button id="%">%</button></td>
                <
转载请注明出处或者链接地址:https://www.qianduange.cn//article/15339.html
标签
评论
发布的文章

jQuery3 学习手册(三)

2024-08-18 22:08:04

vue和jQuery有什么区别

2024-04-29 11:04:47

推荐项目:jQuery.Gantt

2024-08-18 22:08:37

jQuery UI 秘籍(一)

2024-08-18 22:08:15

jQuery详解

2024-04-29 11:04:38

echarts饼图点击图例问题

2024-08-18 22:08:48

echarts天气折线图

2024-08-18 22:08:46

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!