Home > Web Front-end > JS Tutorial > Solve the difference between iframe frameborder under chrome/ff/ie_javascript skills

Solve the difference between iframe frameborder under chrome/ff/ie_javascript skills

WBOY
Release: 2016-05-16 18:21:31
Original
1153 people have browsed it
Copy code The 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 Selected Area Source Code" in IE, we found that the created iframe code is