1
我想用自定义一个替换Fancybox 1.3.4中的默认关闭按钮。 我已经如下更改CSS,但按钮不显示。无法更改Fancybox关闭按钮
#fancybox_close {
width: 66px;
height: 22px;
position: absolute;
right: 10px;
top: 10px;
cursor: pointer;
background: url('../js/jquery/fancybox/closelabel.gif') 0 0 no-repeat;
}
有人可以帮助解决这个问题吗?
可能是上述CSS背景中的路径问题。这一切都取决于你的文件结构和你的图像在哪里关于你的css – chris 2012-02-10 23:32:52
原始代码具有相同的路径:'background:transparent url('../ js/jquery/fancybox/fancybox.png')-40px 0px ;'唯一的区别是默认代码另外有这样的行:'z-index:1103; \t display:none;' – 2012-02-11 00:12:13
如果您向css添加了display none,那么这可能就是您为什么看不到它 – chris 2012-02-11 00:16:18