jquery - 在 iframe 中显示 div
问题描述
我似乎无法让 iframe 显示特定元素。我究竟做错了什么?从 StackOverflow 示例中,我使用以下方法:
注意:iframe 嵌入在 phpbb 论坛中,并引用同一论坛中的页面。
<div class="tab-content">
<form id="ucp" method="post" action="">
<div class="tab-pane">
<fieldset class="framed-ucp">
<legend>Manage notifications</legend>
<p>Here you may view all past notifications.</p>
<div class="row">
<div class="col-md-4">
<ul class="pagination pagination-sm pull-left">
<li><a href="./ucp.php?i=ucp_notifications&mode=notification_list&mark=all&token=cecbf308" class="mark" data-original-title="" title="">Mark all notifications read</a></li></ul>
</div>
</div>
</fieldset>
</div>
</form>
</div>
<iframe id="notify" src="example.com" seamless="seamless" width="1100" height="600">
</iframe>
document.getElementById('notify').contentWindow.document.getElementById('tab-pane')
解决方案
推荐阅读
- firebase - Cloud firestore - 按嵌套数据排序
- pyspark - Pyspark 多个 JOINS 列 <> 行值:减少操作
- python - 如何在 Django 中获取购物车总金额?
- django - 我如何使用 DRF 序列化程序来获取以下 api 结构?
- android - 为什么我的布局看起来像这样?这是我的 XML 文件
- asp.net - 谷歌地图 API 方向服务重定向到 JSON 信息,但我如何让它在手机中打开地图应用程序?
- flutter - Flutter for loop 导致加载动画延迟
- javascript - 使用 appendchild 在 JavaScript 中将字符串转换为 DOM 节点(ul/li)
- java - 在数据库中搜索手机号码
- c++ - 返回我的数组索引号的两个总和(C++ 蛮力)问题