Code that uses Div to simulate the showModalDialog mode menu effect today studies how to use javascript and p to create the display mode form of the current form, and a small example that makes the subform unable to operate!
I can refer to some of my online results for this effect. It is complicated because it integrates some other functions, here I will briefly summarize the principle of this effect:
Step 1: Define a p floating layer floating above the grass-roots layer. The default display mode is hidden. The related code is as follows:
Step 2: Define a floating p object containing iframe. The width and height are both 100%, the background color is white, and the alpha transparency is set to 50%. The main function is to display better results;
Step 3: make the output content p:
Display form
Hope you can have more exchanges!
Step 4: Write related javascript scripts: