计算器样式

<table style="text-align: center;background-color: darkslategrey;" align="center" border="1px" cellspacing="10px">
			
			<tr>
				<td colspan="4"><input value="0" type="text"></td>
			</tr>
			<tr>
				<td><button type="button" id="b5">存储</button></td>
				<td><button type="button" id="b5">存取</button></td>
				<td><button type="button" id="b4">删除</button></td>
				<td><button type="button" id="b4">清屏</button></td>
			</tr>
			<tr>
				<td><button type="button" id="b5">累存</button></td>
				<td><button type="button" id="b5">积存</button></td>
				<td><button type="button" id="b5">清存</button></td>
				<td><button type="button" id="b1">÷</button></td>
			</tr>
			<tr>
				<td><button type="button" id="b3">7</button></td>
				<td><button type="button" id="b3">8</button></td>
				<td><button type="button" id="b3">9</button></td>
				<td><button type="button" id="b1">×</button></td>
			</tr>
			<tr>
				<td><button type="button" id="b3">4</button></td>
				<td><button type="button" id="b3">5</button></td>
				<td><button type="button" id="b3">6</button></td>
				<td><button type="button" id="b1">-</button></td>
			</tr>
			<tr>
				<td><button type="button" id="b3">1</button></td>
				<td><button type="button" id="b3">2</button></td>
				<td><button type="button" id="b3">3</button></td>
				<td><button type="button" id="b1">+</button></td>
			</tr>
			<tr>
				<td><button type="button" id="b3">0</button></td>
				<td><button type="button" id="b3">.</button></td>
				<td><button type="button" id="b3">+/-</button></td>
				<td><button type="button" id="b2">=</button></td>
			</tr>
			
		</table>
<style type="text/css">
			button{
				width: 100%;
				height: 100%;
				color: #fff;
				font-size: 40px;
			}
			input{
				width: 98%;
				font-size: 40px;
				text-align: right;
			}
			#b1{
				background-color: brown;
			}
			#b2{
				background-color: orangered;
			}
			#b3{
				background-color: blue;
			}
			#b4{
				background-color: #000000;
			}
			#b5{
				background-color: #5F9EA0;
			}
		</style>

 

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值