jQuery: How can i create a simple overlay?

后端 未结 7 1811
感动是毒
感动是毒 2020-11-30 19:04

How can I create a really basic overlay in jQuery without UI?

What is a lightweight plugin?

7条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 19:06

    What do you intend to do with the overlay? If it's static, say, a simple box overlapping some content, just use absolute positioning with CSS. If it's dynamic (I believe this is called a lightbox), you can write some CSS-modifying jQuery code to show/hide the overlay on-demand.

提交回复
热议问题