【发布时间】:2015-09-29 05:15:54
【问题描述】:
实际上我想在没有弹出窗口的情况下打开颜色框,并且只需要在 div 内显示隐藏。我们可以定位一个 div 来打开颜色框内容吗?
<a href='#myGallery' class='group'>click here</a>
<div class=''><!--this must be container of colorbox, and disable popup-->
<div id="myGallery"><--some content with photo--></div>
</div>
function _teamPopup(){
$(".group").colorbox({
inline:true,
rel:'group',
href:$(this).attr('href'),
scrolling: false,
opacity:1,
width:100+"%",
});
}
在我的网页上,有很多缩略图,当我点击它时,内容必须显示没有弹出。它可以是下一个,上一个,关闭像彩盒组功能。
【问题讨论】:
-
javascript/colorbox 代码在哪里?
-
@ManProgrammer 更新了.. 你能检查一下吗。
-
你能把你的代码粘贴到小提琴上吗?我们很容易解决你的问题。
标签: javascript jquery colorbox