zoukankan      html  css  js  c++  java
  • html简易计算器的前端代码

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <script type="text/javascript">

    function connectionDigital(control)
    {
    var txt = document.getElementById('txtScream');
    }

    </script>
    </head>

    <body>


    <table width="138" border="1">
     <tr width="200">
     <td height="30" colspan="4"><input type="text" name="txtScream" id="txtScream" style="130px; height:25px;border-style:none; text-align:right;" readonly="readonly" /></td>
     </tr>
      <tr>
        <td width="24"><input name="1" type="button" id="1" value ="1" onclick="connectionDigital(this)"/></td>
        <td width="30"><input name="2" type="button" id="2" value ="2" onclick="connectionDigital(this)"/></td>
        <td width="31"><input name="3" type="button" id="3" value ="3" onclick="connectionDigital(this)"/></td>
        <td width="25"><input name="+" type="button" id="+" value ="+" onclick="connectionDigital(this)"/></td>
      </tr>
      <tr>
        <td><input name="4" type="button" id="4" value ="4" onclick="connectionDigital(this)"/></td>
        <td><input name="5" type="button" id="5" value ="5" onclick="connectionDigital(this)"/></td>
        <td><input name="6" type="submit" id="6" value ="6" onclick="connectionDigital(this)"/></td>
        <td><input name="-" type="button" id="-" value ="-" onclick="connectionDigital(this)"/></td>
      </tr>
      <tr>
        <td><input name="7" type="button" id="7" value ="7" onclick="connectionDigital(this)"/></td>
        <td><input name="8" type="button" id="8" value ="8" onclick="connectionDigital(this)"/></td>
        <td><input name="9" type="button" id="9" value ="9" onclick="connectionDigital(this)"/></td>
        <td><input name="*" type="button" id="*" value ="*" /></td>
      </tr>
      <tr>
        <td><input name="0" type="button" id="0" value ="0" onclick="connectionDigital(this)"/></td>
        <td colspan="2"><input name="=" type="button" id="=" value ="=" /></td>
        <td><input name="/" type="button" id="/" value ="/" /></td>
      </tr>
    </table>
    <p>&nbsp;</p>

    </body>
    </html>

  • 相关阅读:
    Java学习---Java代码编写规范
    移动端与Web端疫情数据展示
    Java实现邮箱验证码
    Java实现短信验证码
    利用Jsoup爬取新冠疫情数据并存至数据库
    echarts全国疫情统计可视化地图(第一阶段)
    构建之法阅读笔记04
    HDU 4628 Pieces(状压DP)题解
    ZOJ 2563 Long Dominoes(状压DP)题解
    POJ 2288 Islands and Bridges(状压DP)题解
  • 原文地址:https://www.cnblogs.com/helloaworld/p/5498103.html
Copyright © 2011-2022 走看看