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: