JavaScript编写的简单计算器
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>简易计算器</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="Calculator.css" type="text/css"></link> [removed][removed] </head> <body> <div class="zt"> <form method="post" action="" name="form"> <div class="biaoti"><span>计 算 器</span><hr/></div> <div> <input name="ipt" type="text" id="ipts" value="0" size="40" maxlength="20" readonly="readonly" /> </div> <div> <input name="button23" type="button" class="bt" id="button23" value="Backspace" /> <input name="button21" type="button" class="bt" id="button20" value="CE" /> <input name="button20" type="button" class="bt" id="button21" value="C" /> </div> <div> <input blue" name="button1" type="button" class="bt1" id="button1" value="7" /> <input blue" name="button2" type="button" class="bt1" id="button2" value="8" /> <input blue" name="button3" type="button" class="bt1" id="button3" value="9" /> <input red" name="button4" type="button" class="bt1" id="button4" value="/" /> <input blue" name="button5" type="button" class="bt1" id="button5" value="sqrt" /> </div> <div> <input blue" name="button6" type="button" class="bt1" id="button6" value="4" /> <input blue" name="button7" type="button" class="bt1" id="button7" value="5" /> <input blue" name="button8" type="button" class="bt1" id="button8" value="6" /> <input red" name="button9" type="button" class="bt1" id="button9" value="*" /> <input blue" name="button10" type="button" class="bt1" id="button10" value="%" /> </div> <div> <input blue" name="button11" type="button" class="bt1" id="button11" value="1" /> <input blue" name="button12" type="button" class="bt1" id="button12" value="2" /> <input blue" name="button13" type="button" class="bt1" id="button13" value="3" /> <input red" name="button14" type="button" class="bt1" id="button14" value="-" /> <input blue" name="button15" type="button" class="bt1" id="button15" value="1/x" /> </div> <div> <input blue" name="button16" type="button" class="bt1" id="button16" value="0" /> <input blue" name="button17" type="button" class="bt1" id="button17" value="+/-" /> <input blue" name="button18" type="button" class="bt1" id="button18" value="." /> <input red" name="button19" type="button" class="bt1" id="button19" value="+" /> <input red" name="button22" type="button" class="bt1" id="button22" value="=" /> </div> </form> </div> </body> </html>
- 1
- caoying2012-11-28感觉挺好的,谢谢分享!
- shenhuxi922015-05-12很不错的东西,可以运行
- cc134366003452013-05-20非常好用,谢谢
- 粉丝: 0
- 资源: 4
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 九州仙侠传2砸蛋系统以及各类修复带数据库
- 伯克利大学机器学习-8Collaborative Filtering [Lester Mackey]
- JAVA的Springboot医院设备管理系统源码数据库 MySQL源码类型 WebForm
- C/C++基本框架及解释
- 使用OpenGL实现透明效果
- java房屋租赁系统源码 房屋房源出租管理系统源码数据库 MySQL源码类型 WebForm
- JAVA的Springboot博客网站源码数据库 MySQL源码类型 WebForm
- c++数字雨实现 c++
- 如何制作MC(需要下载海龟编辑器2.0,下载pyglet==1.5.15)
- JAVA的Springboot小区物业管理系统源码数据库 MySQL源码类型 WebForm