【发布时间】:2013-02-02 01:13:17
【问题描述】:
我在接受的答案here中找到了这个代码... 将 iframe 加载到特定区域 通过按钮单击...
<a href="#" onclick="setIframe(this,'http://www.stackoverflow.co.uk')" >Set the Iframe up</a>
function setIframe(element,location){
var theIframe = document.createElement("iframe");
theIframe.src = location;
element.appendChild(theIframe);
}
如何更改它以允许我设置高度宽度和滚动样式?
【问题讨论】:
标签: javascript jquery iframe