Brightening an image using styles or Javascript

后端 未结 3 1447
Happy的楠姐
Happy的楠姐 2021-02-19 03:27

I would like to brighten an image on my webpage on mouseover using css or javascript. Ive seen some examples using opacity and filters in styles but they dont seem to work for m

3条回答
  •  佛祖请我去吃肉
    2021-02-19 04:19

    I would use something liek:

      filter: alpha(opacity=80);
      opacity: 0.8;
    

    As far as I know, this is the only way to accomplish it in CSS. Is that what you are after?

提交回复
热议问题