Copy codeThe Code is as follows:
Var iframe = document. createElement ("iframe ");
Iframe. id = "frame-" + index;
Iframe. src = url;
Iframe. width = "100% ";
Iframe. marginwidth = "0 ";
Iframe. scrolling = "no ";
Iframe. frameborder = "0 ";
Using "view source code of the selected Region" in IE, we found that the created iframe code is <IFRAME frameborder = 0/>. I searched the relevant information on the Internet. It turns out that IE does not recognize lowercase letters, i'm dizzy ....
Use
Copy codeThe Code is as follows:
SetAttribute ("frameborder", "0", 0 );
// The problem is solved.
Copy codeThe Code is as follows:
Var iframe = document. createElement ("iframe ");
Iframe. id = "frame-" + index;
Iframe. src = url;
Iframe. width = "100% ";
Iframe. marginwidth = "0 ";
Iframe. scrolling = "no ";
Iframe. setAttribute ("frameborder", "0", 0); // The Last 0 indicates whether the case is different. The problem is solved.