nyromodal iframe 大小问题
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
打开 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 to100%
.