[Browsers participating in the test: ie6/ie7/ie8/ff3.5/op9.6/sf4/chrome2]
[Operating system: windows]
This tutorial aims to separate style and behavior in lightbox, and reduce the work of JS in all aspects (full screen occlusion, ie6 occlusion select, bidirectional centering, highly adaptive content, etc.).
First upload the code :Run the code box
[ctrl+a All selection tips: You can modify some code first, and then press Run]
This lightbox has the following features, you can test it by modifying the code ^-^:
If you are interested, the following tips for forming this lightbox are available for you to refer to:
1. Methods for full screen shading:a. Hide the scrollbar of html/body.
b. Use a div as a mask, and then use a div as a page with scroll bars, one stacked on top and one stacked on bottom.
Run the code box
[ctrl+a All selection tips: You can modify some code first, and then press Run]