在html网页中插入html

发布网友 发布时间: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标签插入了网页

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com