Is it possible to change only the alpha of a rgba background colour on hover?

后端 未结 14 2273
离开以前
离开以前 2020-11-29 07:04
14条回答
  •  孤独总比滥情好
    2020-11-29 07:32

    Update: It's not possible to do that unfortunately. You'll need to write two separate selectors of:

    
    a.green:hover {background-color: rgba(118,76,41,1);}
    a.brown:hover {background-color: rgba(118,76,41,1);}
    

    According to the W3C, the rgba property doesn't have/support the inherit value.

提交回复
热议问题