2011-06-11 77 views

回答

1

直列配置參數是一個解決方案

<style type="text/css"> 
    .hide-colorbox{display:none} 
    #cboxLoadedContent .hide-colorbox{display:block} 
</style> 

$(".example8").colorbox({inline:true, href:"#inline_example1"}); 

<div id="inline_example1" class="hide-colorbox"> 
    <p><strong>This content comes from a hidden element on this page.</strong></p> 
</div> 

您可以輸出在頁面加載所需的HTML,然後用CSS隱藏,或者你可以創建基於頁面佈局的內容。