Non transparent div inside a transparent div

后端 未结 4 1145
梦毁少年i
梦毁少年i 2021-01-08 01:09

I am creating a webpage that have a transparent div.

I want to add a non-transparent div inside that transparent div and I find that it is also transparent.

4条回答
  •  悲&欢浪女
    2021-01-08 01:59

    This doesn't work in CSS unfortunately. In the past I've used positioning to push the non transparent div containing the content into the transparent div. I couldn't dig up some old code from my projects, but I did find this blog post:

    Non-transparent elements inside transparent elements

提交回复
热议问题