Create non-transparent div on top of transparent parent element

前端 未结 7 1812
渐次进展
渐次进展 2020-12-29 04:35

EDIT: Changed title to actually be correct

I\'m trying to simulate a modal popup in all HTML and CSS and am having a bit of bad luck w

7条回答
  •  醉话见心
    2020-12-29 05:01

    You can also do this without using a transparent image. Create two separate divs and use z-index to control which one is on top

    Example code on jsfiddle

提交回复
热议问题