就像关闭按钮,我想最小化功能超过灯箱,所以当它是最小化它来到窗口底部只显示标题和最小化按钮转换为恢复按钮,所以当我按下它,灯箱将出现,如果任何其他灯箱是打开的,他们会得到minimized.so我只想一个灯箱是打开的。我尝试了,我不知道我将如何做,如果你可以添加一些神奇的代码到this is my fiddle请看它。谢谢
发布于 2012-09-19 14:35:05
像这样编辑
$('.lightbox').click(function() {
var thisBox = $(this).attr("name");
//console.log(thisBox);
$('.backdrop,.' + thisBox).animate({
'opacity': '.50'
}, 300, 'linear');
$('.box').animate({
'opacity': '1.00'
}, 300, 'linear');
$('.backdrop,.' + thisBox).css('display', 'block');
});只需评论console.log(thisBox)
https://stackoverflow.com/questions/12489555
复制相似问题