实现多个按钮,点选一个其它都取消选中状态


实现思路:

       1 获取所有按钮元素

       2 首先先把其他按钮的背景颜色去掉

       3 再单独设置自己的样式

 1 
 2 "en">
 3 
 4 
 5   "UTF-8">
 6   "X-UA-Compatible" content="IE=edge">
 7   "viewport" content="width=device-width, initial-scale=1.0">
 8   Document
 9 
10 
11 
12   
13   
14   
15   
16   
17   
29 
30 
31