2017-09-17 9 views
0

私はDropboxの持っている:fiddler場合Iframeの中にdropboxを入れるには?

ここ
<iframe></iframe> 

<div id='jqxDropDownList'></div> 

とJS:

var source = [ 
     "Affogato", 
     "Americano", 
     "Bicerin", 
     "Breve", 
     "Café Bombón", 
     "Café au lait"]; 
    // Create a jqxDropDownList 
    $("#jqxDropDownList").jqxDropDownList({ 
     source: source, 
     selectedIndex: 3, 
     theme: 'energyblue', 
     checkboxes:true 
}); 

そして、このiFrameを。

私の質問は、Iframe内にdropboxを配置する方法です。

答えて

1

あなたはあなたのコードは、それがあったように、別のページにする必要がありますので、SRCにあなたのiframeをポイントする必要があります。

<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css"/> 
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css"/> 
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script> 
<div id='jqxDropDownList'></div> 

とJS:

https://jsfiddle.net/Lp0qgsjd/<iframe src="https://jsfiddle.net/CLB86/320/show"></iframe>http://jsfiddle.net/CLB86/320/あなたのコードを持っているが含まれています:

var source = [ 
    "Affogato", 
    "Americano", 
    "Bicerin", 
    "Breve", 
    "Café Bombón", 
    "Café au lait"]; 
// Create a jqxDropDownList 
$("#jqxDropDownList").jqxDropDownList({ 
    source: source, 
    selectedIndex: 3, 
    theme: 'energyblue', 
    checkboxes:true 
}); 
関連する問題