body { font-family:"微软雅黑"; margin:20px; padding:0; text-align:center; } input { position:relative; left:50%; transform:translateX(-50%); padding:10px 20px; display:block; outline:none; background-color:#FFFFFF; border:1px solid #000000; cursor:pointer; margin-top:15px; font-size:18px; font-family:"微软雅黑"; transition:all 0.15s; } input:hover,input:hover { background-color:#333333; color:#FFFFFF; }
用js实现计时器的暂停继续功能,结束计时清零