【发布时间】:2014-05-14 22:23:08
【问题描述】:
我希望我的 popin 以响应方式水平响应,而不是垂直响应。 当我使用 fancybox 来调用 img 时它可以工作,但当它用于 iframe 时则不行。
Check the difference between my first work and the second.
我用
<script type="text/javascript">
$(document).ready(function(){
$('.fancybox').fancybox({
openEffect: 'elastic',
closeEffect: 'elastic',
prevEffect: 'fade',
nextEffect: 'fade',
fitToView: true, //
maxWidth: "90%", //
type: 'iframe',
scrolling: 'no',
iframe : {
scrolling : 'no'
}
});
});
</script>
【问题讨论】:
标签: jquery html iframe fancybox