📜  暂停间隔按钮 javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:21.493000             🧑  作者: Mango

代码示例3
body {
  background-color: #eee;
  font-family: Calibri, Arial, sans-serif;
}
#counter {
  width: 50%;
  background: #ddd;
  border: 2px solid #009afd;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  transition: .3s;
  margin: 0 auto;
}
#counter.pauseInterval {
  border-color: red;  
}