发布网友
发布时间:2022-04-23 12:46
共3个回答
热心网友
时间:2022-04-21 04:35
比如:<iframe id="ad"FRAMEBORDER=0 src="晚报首页(红).html"></iframe>
<style> #ad{width:1000px;height:600px;}</style>
在SRC上浏览你要插入的HTML 然后设置宽度和高度就可以了
热心网友
时间:2022-04-21 05:53
通过嵌套iframe 实现在同一页面打开其他页面
<script type="text/javascript">
$(function () {
document.getElementById("ifm").src ="";//Url地址
$("#ifm").load(function () {
var h = document.body.clientHeight;
var w = document.body.clientWidth;
document.getElementById("ifm").height = h + "px";
document.getElementById("ifm").width = w + "px";
});
})
</script>
<body style="overflow-y:hidden;overflow-x:hidden">
<div id="pageone" style="">
<iframe name="ifm" id="ifm" scrolling="yes" style="background-color: transparent;" marginwidth="0" marginheight="0" frameborder="0">
</iframe>
</div>
</body>
热心网友
时间:2022-04-21 07:27
用iframe标签插入了网页