nyromodal iframe 大小问题

发布于 2024-08-28 23:28:23 字数 1052 浏览 1 评论 0原文

我有一个 jquery 画廊(galleriffic),它打开了 nyroModal 并设置了良好的大小。 我想在此页面上发布图片(使用 nyromodal 打开页面,其中有画廊)。 当我使用 iframe 时,页面大小的值错误。

gallery.aspx 上使用的 jquery 代码,它作为 nyromodal 运行:

<script language="javascript" type="text/javascript">
    $(document).ready(function() {
        var height = $(window).height();
        var width = $(window).width();
        alert(height);
        alert(width);
        var autosizable = true;
        var windowResize = true;
        var resizeable = true;

        $.nyroModalSettings({
            bgColor: '#000000',
            windowResize: windowResize,
            width: width,
            height: height,
            resizable: resizeable,
            autoSizable: autosizable
        });
    });

链接打开图库页面(有点扭曲,因为我不想显示 html):

a class="nyroModal" target="_blank" href='Ajax/gallery.aspx?guid=<%= Trip.guid%>&op=add'img src="~/img/icon/icon_add.gif" runat="server" //a

如何设置合适的尺寸到这个画廊?? 当我输入刚度值时,不会解释它们

问候

I have a jquery gallery (galleriffic), which opened nyroModal and a good set size.
I want to post pictures on this page (page open with nyromodal where is gallery).
When I use an iframe, the page size has the wrong value.

jquery code used on the gallery.aspx, which is run as a nyromodal:

<script language="javascript" type="text/javascript">
    $(document).ready(function() {
        var height = $(window).height();
        var width = $(window).width();
        alert(height);
        alert(width);
        var autosizable = true;
        var windowResize = true;
        var resizeable = true;

        $.nyroModalSettings({
            bgColor: '#000000',
            windowResize: windowResize,
            width: width,
            height: height,
            resizable: resizeable,
            autoSizable: autosizable
        });
    });

link opens the gallery page (a little distorted because I did not want me to display a html):

a class="nyroModal" target="_blank" href='Ajax/gallery.aspx?guid=<%= Trip.guid%>&op=add'img src="~/img/icon/icon_add.gif" runat="server" //a

How to set good size to this gallery??
When i will put the value of the stiffness does not interpret them

Regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

十级心震 2024-09-04 23:28:23

打开 Nyro javascript 文件并搜索 -> “boxModel”(请注意 case-sEnsItIviTy)。您会发现两个地方使用了99%高度。我必须将其更改为 100%

Open the Nyro javascript file and search for -> "boxModel" (please notice the cAsE-sEnsItIviTy). You will find two places where there is a 99% height used. I had to change that to 100%.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文