iframe 相关问题

“iframe”是一个HTML元素,它在文档中创建“内嵌框架”,允许在同一页面中显示单独的文档。

Vimeo 嵌入不跟踪

我正在嵌入 Vimeo 视频,但是我希望添加他们的“请勿跟踪”功能。 我已经添加了 URL 参数 ?dnt=1 <p>我正在嵌入 Vimeo 视频,但是,我希望添加他们的“请勿跟踪”功能。</p> <p>我已经添加了URL参数</p> <pre><code>?dnt=1 </code></pre> <pre><code> &lt;iframe src=&#34;https://player.vimeo.com/video/12341234123?dnt=1&#34;/&gt; </code></pre> <p>但是,在加载网站时我仍然看到来自 Vimeo 的 cookie。 我做错了什么?</p> </question> <answer tick="false" vote="-1"> <p>引用vimeo:</p> <p>如果您使用的应用程序要求您插入 Vimeo.com URL(例如 <a href="https://vimeo.com/" rel="nofollow noreferrer">https://vimeo.com/</a> 76979871 )而不是我们的嵌入代码,您将无法使用播放器参数来自定义嵌入式播放器.</p> <p>例如,不支持此方法:</p> <p><a href="https://vimeo.com/76979871" rel="nofollow noreferrer">https://vimeo.com/76979871</a>?质量=720p</p> <p>支持:请参阅下面的链接</p> <p><a href="https://help.vimeo.com/hc/en-us/articles/12426260232977-Player-parameters-overview#h_01FNYA7QTNCMWXY3GV2RF8QP5A" rel="nofollow noreferrer">https://help.vimeo.com/hc/en-us/articles/12426260232977-Player-parameters-overview#h_01FNYA7QTNCMWXY3GV2RF8QP5A</a></p> </answer> </body></html>

回答 0 投票 0

如何阻止网站在 iframe 中加载?

最近我尝试在 iframe 中加载 youtube 网站,但我检查它不起作用。我使用了这个简单的代码。 <...

回答 2 投票 0

在这种情况下唯一标识用户的最佳方法?

我将在 iframe 中的网站上运行代码,该代码可能跨域也可能不跨域,并且可能在多个 iframe 中重复。我可能在顶部窗口中运行代码,也可能没有。我想要...

回答 3 投票 0

适合 <iframe> 以正确调整动态 HTML 的大小

看这里: 我只想打开黄色部分,背景中的其余部分是不必要的,我该怎么做? 打开iframe的代码: ... 看这里: 我只想打开黄色部分,背景中的其余部分是不必要的,我该怎么做? 打开iframe的代码: <div class="col-12 mb-3"> <a class="nav-link text-white" href="javascript:void(0);" onclick="openModal('emailVerification', '../pages/email-verification.html')"> <button id="verifyEmailButton" type="button" class="btn btn-success" style="width: 300px;">Bekräfta din e-post</button> </a> </div> <div class="modal fade" id="emailVerificationModal" tabindex="-1" role="dialog" aria-labelledby="emailVerificationModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-scrollable modal-xl" role="document"> <div class="modal-content border-0"> <button style="background-color: #2e4873; color: white;;" type="button" class="btn btn-info close small-close-btn" aria-label="Close" data-dismiss="modal" onclick="closeEmailVerificationModal()">&times;</button> <br> </button> <div class="modal-body"> <iframe id="emailVerificationIframe" src="" frameborder="2" style="width: 100%; height: 80vh;"></iframe> </div> </div> </div> </div> & 带有 iframe 内容的 HTML: <div class="main"> <div class="div-1"> <div class="div-2"> <img src="../social/icons/mail.png" width="70px" /> <h3>Verifiera din e-post adress</h3> <p id="ppp"> Du är nästan där! Vi har skickat ett mail till: <span style="font-weight: bold;" class="d-sm-inline d-none" id="userID"><span id="userName"></span></span> </p> <p> Klicka bara på länken i det e-postmeddelandet för att slutföra din registrering. Om du inte set det, kan du behöva <span id="bold">kolla din skräppost.</span </p> </div> <p id="message"></p> <div class="buttondiv"> <button style="background-color: #2e4873;" type="button" class="btn btn-info"onClick="resend()">Skicka igen</button> <button style="background-color: #2e4873;" type="button" class="btn btn-info" onClick="reload()">Bekräfta</button> </div> <div id="info-message" class="alert alert-success alert-dismissible text-white" role="info" style="display: none;"> <span class="text-sm">Nu har vi skickat verifikationslänken igen.</span> </div> <div id="warning-message" style="display: none;"> <span class="text-sm">Du har inte bekräftat din e-post adress än.</span> </div> <div id="success-message" style="display: none;"> <span class="text-sm">Din e-post adress är nu bekräftad.</span> </div> </div> </div> 我有多个这样制作的模态,确实需要调整它们的大小。 这是一个如何使用具有透明背景的对话框的简单示例 您可以在这里找到文档:https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog const dialog = document.querySelector("dialog"); const showButton = document.querySelector("dialog + button"); const closeButton = document.querySelector("dialog button"); // Le bouton "Afficher la fenêtre" ouvre le dialogue showButton.addEventListener("click", () => { dialog.showModal(); }); // Le bouton "Fermer" ferme le dialogue closeButton.addEventListener("click", () => { dialog.close(); }); ::backdrop { opacity: 0; } <main> <dialog> <p>Hello World</p> <button autofocus>Close</button> </dialog> <button>Show Dialog</button> <p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." Section 1.10.32 du "De Finibus Bonorum et Malorum" de Ciceron (45 av. J.-C.) "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?" Traduction de H. Rackham (1914) "But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?" </p> <main>

回答 1 投票 0

如何从 iframe 跨原点内关闭 iframe

我创建了一个页面,最终用户将通过 iframe 使用该页面。 在我创建的页面内有两个按钮“提交”和“拒绝”。单击拒绝按钮后我想关闭...

回答 2 投票 0

Iframe 中的 SharedArrayBuffer

因此,SharedArrayBuffer 最近被限制为跨源隔离页面作为安全修复。 我们有一个依赖于 SharedArrayBuffer 的工具,我通过将其移动到准系统来重新设计它以使其再次工作......

回答 3 投票 0

Office 表单API

我目前有一个功能项目,团队填写服务表单,但这些数据不会进入数据库。我做这个项目是为了让我的日常生活更轻松,因为我将这些数据记录在...

回答 1 投票 0

如何展开 Chrome 扩展程序的弹出窗口

我想展开用户单击扩展按钮时出现的弹出窗口... (我想将弹出窗口的大小扩大到红色区域) 这是我用来显示弹出窗口的代码;...

回答 2 投票 0

允许子域之间的跨站请求,而不更改第二个子域的文件内容

我目前正在尝试包装一个 Web 应用程序 (ConnectWise) 以包含在我公司的中央 Intranet 站点中。大多数情况下,这是一个相当简单的过程;创建一个包含页面,...

回答 3 投票 0

A网站和B网站之间是否可以进行单点登录交互?

我有一个名为A的门户网站,名为www.aone.com,它有几个用户。 我有一个名为 B 的门户网站 (www.btwo.com)。这个门户也有用户。 现在我想要那个,用门户A登录,然后添加一个...

回答 1 投票 0

如何捕获 Firefox 中抛出的所有 DOMException?

我想创建一个方法,如果允许父页面(因为它位于同一域下),则返回 iframe 的 URL,如果不允许父页面,则返回一个假值...

回答 1 投票 0

使用 iframe 通过 Chrome 扩展将本地 HTML 文件注入网页?

我有一个 HTML 文件,我想从 Chrome 扩展程序将其注入到 Google 搜索结果页面的每个结果旁边。 我想知道是否可以使用 iframe 来加载 HTML 文件? 这是 instea...

回答 2 投票 0

如何关闭 iframe 本身内的 iframe

如何使用 javascript 或 jQuery 关闭 iframe 本身内的 iframe?我已经尝试过但没有成功。

回答 6 投票 0

如何从 Duda 获取 postMessage 消息到嵌入的 iframe 中?

根据我所读到的内容,让客户端代码从沙盒之外的 iframe 读取消息似乎是不可能的。我只能将其发送到沙盒之外的 iframe。什么...

回答 1 投票 0

CloudRun 上托管的 iframe 未在 React JS 中触发 onLoad 事件

我在网页中嵌入了一个 iframe。有时 iframe 需要一段时间才能加载,有时会立即加载。我想在加载 iframe 时显示旋转的轮子动画。我是

回答 1 投票 0

iframe onLoad 事件在 React JS 中未触发

我在网页中嵌入了一个 iframe。有时 iframe 需要一段时间才能加载,有时会立即加载。我想在加载 iframe 时显示旋转的轮子动画。我是

回答 1 投票 0

如何防止 IFRAME 重定向顶级窗口

某些网站具有“突破”IFRAME 范围的代码,这意味着如果页面 A 作为 IFRAME 加载到父页面 P 内,则 A 中的某些 Javascript 会将外部窗口重定向到 A。 通常...

回答 10 投票 0

如何从第三方 iframe 中静音 console.log

目前,我正在使用 NEXT.js 开发一个网络应用程序。交易是我正在使用一个第三方 iframe,它显示大量(数百个)console.logs。我只是想“静音”输出......

回答 0 投票 0

仅刷新某些 iframe,而不使用 jQuery 刷新整个页面

当页面最初加载时,我有一个隐藏的 iframe 和其他可见的 iframe。然后,当单击按钮时,我需要隐藏以前可见的一个按钮,然后取消隐藏另一个按钮(实际上我需要设置...

回答 3 投票 0

如何在父级卸载后保持 iframe 挂载在 React 中

我有一个 React 应用程序,其中包含包含 iframe 的组件。我的组件确实根据状态进行安装和卸载(例如 {(showApp === true) && })。每次我的

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.