我正在使用 jQuery Fancybox 弹出注册表单 here
我希望表单的大小为 450px x 700px,但无论我设置什么高度和宽度,我都会得到滚动条:
<script type="text/javascript">
$(document).ready(function() {
$("a#regForm").fancybox({
'titleShow' : false,
'autoscale' : true,
'width' : '450',
'height' : '700',
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
});
});
</script>
一定是我做错了什么,但我不知道它是什么。我将不胜感激。谢谢。
最佳答案
我在使用 fancybox 和 iframe 时遇到了同样的问题,在 google 上搜索了解决方案,最后来到了这里。溢出:隐藏对我来说不起作用,但是我发现 fancybox 允许您设置 iframe 滚动的选项(相当于在 iframe 上设置“scrolling=no”属性),这以更多方式修复了 IE7 中的问题优雅的举止:
$.fancybox({
'type' : 'iframe',
'scrolling' : 'no',
... and the rest of the parameters.
关于jQuery - Fancybox : But I don't want scrollbars!,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2268330/