Can I set an opacity only to the background image of a div?

后端 未结 8 1489
轮回少年
轮回少年 2020-11-22 11:09

Let\'s say I have

Hi there

I want to put a background-image and give it an opacit

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 11:51

    This can be done by using the different div class for the text Hi There...

    Hi there

    Now you can apply the styles to the

    tag. otherwise for bg class. I am sure it works fine

提交回复
热议问题