gpt4 book ai didi

javascript - 如何通过我的 jQuery UI 对话阻止 IE7/8 中的 adobe reader 流血?

转载 作者:太空宇宙 更新时间:2023-11-04 05:23:07 26 4
gpt4 key购买 nike

我有一个简单的设置 http://denishoctor.me/readertest.html (下面的代码也是如此)。该按钮会在嵌入的 pdf 上打开一个对话。这在除 IE6/7/8 之外的所有方面都很好。

有谁知道如何阻止它?

谢谢,丹尼斯

<button type="button">Click Me</button>

<iframe id="iFrameResponse" style="margin-left:250px;height:500px;width:100%" src="http://knowwheretheygo.org/media//static/content/sample.pdf"></iframe>

<div id="InformationDialog" style="display: none;">This is my info</div>

<script type="text/javascript">
$(document).ready(function() {
$( "#InformationDialog" ).dialog( {
title: "Information",
autoOpen: false,
hide: "slide",
show: "slide",
width: 225,
position: [100,125],
height: 400
} );

$("button").click(function() {
$("#InformationDialog").dialog('open'); return false;
});
});
</script>

更新:我找到了 http://groups.google.com/group/jquery-ui/browse_thread/thread/66c7d2d31feedea9?fwc=1 .其中谈到http://brandonaaron.net/code/bgiframe/docs/ .如前所述,任何人都知道需要进行哪些更改才能使其在 IE 中用于 PDF?

最佳答案

好吧,这当然不是理想的,但它有效,而且我还没有看到任何其他东西。也只对 IE6/7/8 这样做,不要惩罚那些好的浏览器:

在弹出窗口下方和 PDF 上方粘贴一个 iFrame。为 jQueryUI 对话框关闭拖动和调整大小后,效果很好。由于我认为是重新绘制和位置,因此打开它们似乎有些闪烁。

示例可以在@ http://denishoctor.me/examples/iframepdf/test.html 找到

关于javascript - 如何通过我的 jQuery UI 对话阻止 IE7/8 中的 adobe reader 流血?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5987599/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com