2017-09-17 79 views
0

我的Dropbox:如何把Dropbox放入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></iframe> 

这里如果fiddler

我的问题是如何把Dropbox放入Iframe?

回答

1

您需要到iframe指向一个src,所以你的代码需要在另一个页面,因为它是:

https://jsfiddle.net/Lp0qgsjd/包含<iframe src="https://jsfiddle.net/CLB86/320/show"></iframe>http://jsfiddle.net/CLB86/320/有你的代码:

<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 :

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 
});