Home  >  Article  >  Web Front-end  >  解决iframe的frameborder在chrome/ff/ie下的差异_javascript技巧

解决iframe的frameborder在chrome/ff/ie下的差异_javascript技巧

WBOY
WBOYOriginal
2016-05-16 18:21:311112browse
复制代码 代码如下:

var iframe = document.createElement("iframe");
iframe.id = "frame-" + index;
iframe.src = url;
iframe.width = "100%";
iframe.marginwidth = "0";
iframe.scrolling = "no";
iframe.frameborder="0";

使用IE中“查看选定区域源代码”发现创建的iframe代码是
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn