Achieving white opacity effect in html/css

后端 未结 2 366
醉话见心
醉话见心 2021-02-02 07:26

is there a way to achieve this effect in a cross-browser compatible way without having to prepare separated images?

Basically the frame on which text lays has a white ov

2条回答
  •  梦谈多话
    2021-02-02 07:42

    Try RGBA, e.g.

    div { background-color: rgba(255, 255, 255, 0.5); }
    

    As always, this won't work in every single browser ever written.

提交回复
热议问题