I wrote a pop-up dialog box in the previous article, but there was a bug in ie6, which didn't implement the position: fixed effect at all. At that time, there was no real ie6 environment, and the test was neglected. I hurriedly put it on my blog, it also allows some readers to see and even use it. I am very sorry here. This time I used the original code's organizational structure to re-enhance the function. There are still two small issues, the first one is that the custom pop-up layer in ie6 will not be able to cover select. Currently, it has not been added to the component. You can add ifame to the custom p to mask it, the pop-up layer of the component can be hidden. The second problem is that the browser cannot automatically follow the browser window because it is absolutely positioned. You will know when you try it. Of course there are certainly many problems, but I think these two are important. I will list them for now and fix them later.
The following code contains comments and can be run directly.
Online Demo http://demo.jb51.net/js/2011/js_popup_up/index.htm
The Code is as follows:
Lock page