How can I apply CSS on all buttons which are present in that page?

后端 未结 5 1553
慢半拍i
慢半拍i 2020-12-08 16:46

I have created a CSS style class:

.btn { 
  color:#050; 
  font: bold 84% \'trebuchet ms\',helvetica,sans-serif; 
  background-color:#fed; 
  border:1px soli         


        
5条回答
  •  半阙折子戏
    2020-12-08 17:13

    just a note

    input[type="button"]
    

    isn't going to work on old browsers like IE6. If that's a problem you will unfortunately need to add your class to each item.

提交回复
热议问题