我在这里找到了接受答案中的代码... 该代码通过按钮点击将一个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);
}
我该如何更改这个代码,以便允许我设置高度、宽度和滚动条的样式呢?