How can I change a button's color on hover?

后端 未结 3 444
猫巷女王i
猫巷女王i 2020-11-27 06:47

I need to change the color of a button on hover.

Here is my solution, but it doesn\'t work.

a.button {
   display: -moz-inline-stack;
   display: inl         


        
3条回答
  •  醉梦人生
    2020-11-27 07:34

    a.button:hover{
        background: #383;  }
    

    works for me but in my case

    #buttonClick:hover {
    background-color:green;  }
    

提交回复
热议问题