Making text background transparent but not text itself

后端 未结 5 1590
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 23:53

So I am having a problem. I have looked around and looked around but no luck. I would like to make the background of my body transparent but leave the text non transparent.

5条回答
  •  情深已故
    2020-11-29 00:43

    opacity will make both text and background transparent. Use a semi-transparent background-color instead, by using a rgba() value for example. Works on IE8+

提交回复
热议问题