html - 如何嵌入页面的一部分/元素
问题描述
我在一个页面上创建了一个测试,我需要将它嵌入到另一个页面上: https ://mmi.kaige.nl/test/studie-matchmaker/
测试需要在其他页面上可见。请您的帮助
我试图用下面的代码嵌入它,但这也嵌入了菜单......
<iframe src=".post-1301 .post-content" width="100%" height="100%">
<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
</iframe>
如果我可以将测试嵌入到包含导致结果的按钮的页面上,那就太好了。
解决方案
如果我认为我知道您要问什么:您应该添加一个 div 元素或一个 table 元素,例如:
<table>
<tr>
<td>
<iframe src=".post-1301 .post-content" width="100%" height="100%">
<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
</iframe>
</td>
</tr>
</table>
<div>
<iframe src=".post-1301 .post-content" width="100%" height="100%">
<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
</iframe>
</div>
推荐阅读
- angular - 当我使用命令 ng new myprojectname 以角度创建新项目时出现此错误
- .htaccess - 我想替换 url 使用 htaccess
- postgresql - 在 PGAdmin4 中的数据库之间切换
- reactjs - 在 React 中加载没有侧边栏、导航栏和仪表板的登录页面
- sql-server - 在 Redhat 7.5 中连接到数据源时遇到问题
- java - 无法设置 java 小部件的位置
- php - 从 WordPress 下载 mySQL 表作为制表符分隔文件
- swift - Swift 5 的 Xcode 错误“dyld:未加载库:@rpath/libswiftCore.dylib”
- python - Python:如何从分布中选择一个值?
- flutter - 如何在颤动中等待带有等待对话框的插页式广告