无法更改 Fancybox 关闭按钮

发布于 2025-01-04 07:40:51 字数 306 浏览 1 评论 0原文

我想用自定义按钮替换 Fancybox 1.3.4 中的默认关闭按钮。 我已将 CSS 更改如下,但按钮未显示。

#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;
}

有人可以帮助解决这个问题吗?

I want replace default close button in Fancybox 1.3.4 with custom one.
I've changed CSS as follows, but button not showing.

#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;
}

Can someone help with this issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

神经暖 2025-01-11 07:40:51

好的,这已经解决了。只需指定正确的图像路径即可。

OK, this is solved. Just need to be specified correct path to image.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文