html5 - 如何用div语法在一个html里插入另外一段html(或者文件)代码并完整显示
问题描述

这个是写出来的效果
这个是原图html效果
<iframe src='https://www.haobala.com/wenda/test12.html' name='iframepage' frameBorder=0 scrolling=no onLoad='iFrameHeight()' ></iframe>这个是代码请问怎么才能显示完整呢?方便的话请提供一下完整代码。。
这里是前半段的代码<!DOCTYPE html><html> <head>
<title>data</title><meta charset='utf-8'><meta name='author' content='2' /><link rel='stylesheet' href='https://www.haobala.com/wenda/zh-CN.css' type='text/css' />
</head> <body>
<textarea id='source'>
class: center, middle, inverse, title-slide
data123<iframe src='https://www.haobala.com/wenda/test12.html' name='iframepage' frameBorder=0 scrolling=no onLoad='iFrameHeight()' ></iframe>
class: inverse, center, middle
问题解答
回答1:试试这个可以吗
function iFrameHeight() { document.getElementById('iframepage').style.height = window.frames[’iframepage’].document.documentElement.scrollHeight + ’px’;}
相关文章:
1. 关docker hub上有些镜像的tag被标记““This image has vulnerabilities””2. Python如何利用Selenium或者PhantomJS爬取动态网页内容3. 如何解决Centos下Docker服务启动无响应,且输入docker命令无响应?4. Python, for-else, while-else是否造成了语义歧义 ( 增加心智负担 )?5. docker - 如何修改运行中容器的配置6. Docker for Mac 创建的dnsmasq容器连不上/不工作的问题7. 怎么在phpstudy中用phpexcel上传数据到MYSQL?8. macos - 无法source activate python279. mysql多表查询10. python - celery beat 调度如何运行期间动态添加任务?

网公网安备