<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<iframe id="iframe1" src="http://www.google.com" height="240" width="350"></iframe>
</body>
</html>
建议我使用javascript
答案 0 :(得分:0)
试试这个
<script type="text/javascript" language="javascript">
var node = document.createElement("IFRAME");
node.async = "true";
node.src ="http://www.google.com";
node.width = '300px';
node.height = '400px';
node.frameBorder = "0";
node.scrolling = "NO";
document.body.appendChild(node);
</script>
希望它有所帮助!!!