CopyCodeThe 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 ";
Use "View selected regions" in IESource codeI found that the created IFRAME code is <IFRAME frameborder = 0/>. I searched the information online. It turns out that IE does not recognize lowercase letters, and I am dizzy ....
UseCopy 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.