Why does my img hover not work?

前端 未结 8 1089
谎友^
谎友^ 2021-01-26 02:26

I am trying to get to be set to an opacity: .04;, and when hovered over to be opacity:1; however, my img hover is not functioning. I am unsure of why t

8条回答
  •  爱一瞬间的悲伤
    2021-01-26 03:23

    Adjust your approach in your CSS. You are setting the opacity using the .intro-img class, so you will need to use the same class.

    img.intro-img:hover {
        opacity: 1;
    }
    

提交回复
热议问题