0
我想在一個colorbox中顯示一個特定的div,而是整個頁面在colorbox中。這裏是我的html代碼顯示在彩盒div的概率
<div id="right">
<div id="photo_preview">
<a rel="example1" href="#photo_preview"><img class="photo_preview_image" src="female.png"></img></a>
<label class="photo_preview_caption">Caption</label>
<input class="photo_preview_caption_input" type="text" name="caption_" size="30" value=""></input>
<input class="photo_preview_album_art" type="radio" name="album_art" title="Album Art" value=""></input>
<img class="photo_preview_delete_image" src="Dustbin.PNG" title="Click To Delete Pic"></img>
</div>
</div>
這裏顏色框功能
$(document).ready(function(){
//Examples of how to assign the ColorBox event to elements
$("a[rel='example1']").colorbox(
);
//Example of preserving a JavaScript event for inline calls.
$("#click").click(function(){
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
return false;
});
});