最近在看《JAVASCRIPT王者归来》,一直看书,手有点痒,想写点东西,又不知写啥,只好自己写写书里的例子,仿WINDOWS的计算器功能,欢迎大家来指点。
好了,?嗦了这么多,就开始说正题。
首先的界面,很简单,只是调了一下布局,样式用的是默认样式,直接上代码。
1 2 3 4 5 仿Windows计算器 6 7 .content{} 8 div,input{margin:0;padding:0;} 9 .console, .btnBar{margin:3px auto; }10 .console{ height:50px;border:1px solid #09F;width:190px;}11 .btnBar{width:195px; }12 input[type="button"] {width:34px; height:27px;margin-right:5px; display:block; float:left;}13 #equalBtn{height:56px; margin-top:-27px;}14 #n0Btn{width:73px;}15 input[type="text"]{display:block; border:none; height:25px; width:185px; font-size:20px;}16 #btmText{text-align:right;}17 18 19 2021
22 23 24 25
查看更多关于仿Windows计算器(一)??界面部分_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did105109