所以我用的是fancybox,以及谷歌的minify http://code.google.com/p/minify/
但是在缩小fancybox css之后,当我单击某个fancybox对象时,fancybox上的close按钮就会从其中消失……
我检查了简化的css源代码,发现close属性似乎没有任何问题:
#fancybox-close{position:absolute;top: -15px;right: -15px;width:30px;height:30px;background:transparent url('/jqui/plugins/fancybox/fancybox/fancybox.png') -40px 0px;cursor:pointer;z-index:1103;display:none}与普通版本相比
#fancybox-close {
position: absolute;
top: -15px;
right: -15px;
width: 30px;
height: 30px;
background: transparent url('fancybox.png') -40px 0px;
cursor: pointer;
z-index: 1103;
display: none;
}有没有人知道如何让fancybox关闭按钮仍然工作,尽管使用谷歌的minify缩小css…
在没有缩小的情况下,一切工作正常
发布于 2011-03-30 01:03:52
图像路径可能是错误的,尝试给它一个background:red或其他东西,看看它是否显示出来。
https://stackoverflow.com/questions/5476182
复制相似问题