首页 > 解决方案 > 如何嵌入页面的一部分/元素

问题描述

我在一个页面上创建了一个测试,我需要将它嵌入到另一个页面上: 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>

如果我可以将测试嵌入到包含导致结果的按钮的页面上,那就太好了。

标签: htmlembed

解决方案


如果我认为我知道您要问什么:您应该添加一个 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>


推荐阅读