2013-02-20 78 views
-1

我想在iframe的頁腳中添加一個按鈕,但如果有滾動條,則無法隱藏該按鈕。FancyBox - iframe

可能嗎?

+0

這是可能的。你有沒有嘗試過一些東西? – istepaniuk 2013-02-20 20:37:46

+0

我把底部的按鈕,增加了底部... 填充: 「各種」[15,15,50,15] $(文件)。就緒(函數(){ \t $( ).fancybox({ \t \t \t maxWidth:800, \t \t \t maxHeight:600, \t \t \t fitToView:假, \t \t \t寬度\t: '100%', \t \t高度\t \t: '100%', \t \t的autoSize \t:真, \t \t closeClick \t:假, \t \t openEffect \t: '彈性', \t \t closeEffect \t: '彈性', \t \t填充:[15,15,50,15], \t \t fitToView:true \t}); }); – Max 2013-02-20 20:43:52

+0

在這個例子中,我使用Bootstrap,bootstrap但更簡單 http://img441.imageshack.us/img441/395/imagemwt.png – Max 2013-02-20 21:02:11

回答

0
<body> 
<script> 
$(document).ready(function() { 
$(".various").fancybox({ 
    maxWidth : 800, 
    maxHeight : 500, 
    fitToView : false, 
    width  : '100%', 
    height  : '100%', 
    autoSize : true, 
    closeClick : false, 
    openEffect : 'elastic', 
    closeEffect : 'elastic', 
    beforeShow: function() { 
     if (this.title) { 
      // New line 
      this.title += '<br />'; 
      this.title += '<button class="btn btn-primary" id="enviar" name="enviar" type="submit">Cadastrar Produto</button>'; 
     } 
    }, 


    helpers : { 
     title : { 
      type: 'inside' 
     } 
    } 


}); 



</script> 
</body>