jQuery-Fancybox:但我不需要滚动条! [英] jQuery - Fancybox: But I don't want scrollbars!
问题描述
我正在将jQuery Fancybox用于弹出式注册表此处
I am using jQuery Fancybox for a popup registration form here
我希望表格大小为450px x 700px,但是无论我在设置滚动条时设置了高度和宽度是什么:
I would like the form to come up at the size of 450px by 700px but no matter what I set the height and width at I get scrollbars:
<script type="text/javascript">
$(document).ready(function() {
$("a#regForm").fancybox({
'titleShow' : false,
'autoscale' : true,
'width' : '450',
'height' : '700',
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
});
});
</script>
一定是我做错了什么,但我不知道这是什么.在这里,我会很乐于助人.谢谢.
There must be something I am doing wrong but I can't figure out what it is. I would appreciate a helpful hand here. Thanks.
推荐答案
听起来有些奇怪.一个丑陋的解决方案是使用CSS,overflow:hidden;
Sounds a bit wierd. an ugly solution is to use css, overflow:hidden;
每当我使用fancybox时,滚动条即可正常工作.确定fancybox中的内容没有设置其他高度?
Whenever I use fancybox, the scrollbars work correctly. sure that the content oc the fancybox is not setting another height?
查看了您的示例站点.似乎内容中设置了一些宽度大于宽度的框.
Viewed your example-site. Seems like there is some width beeing set in the content that is larger than the fancybox itself.
这篇关于jQuery-Fancybox:但我不需要滚动条!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!