3
用colorbox顯示評論表單,評論和其他圖像相關信息的最佳方式是什麼?像Facebook的個人資料照片欄圖像一樣?在colorbox中顯示評論表單和其他信息以及圖像
只需打開像「node/196?iframe = true」這樣的colorbox圖像節點比打開圖像慢得多。
用colorbox顯示評論表單,評論和其他圖像相關信息的最佳方式是什麼?像Facebook的個人資料照片欄圖像一樣?在colorbox中顯示評論表單和其他信息以及圖像
只需打開像「node/196?iframe = true」這樣的colorbox圖像節點比打開圖像慢得多。
直列配置參數是一個解決方案
<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隱藏,或者你可以創建基於頁面佈局的內容。