【问题标题】:How to overload a specific layer of CSS3 layered multiple background images [duplicate]如何重载CSS3分层多个背景图像的特定层[重复]
【发布时间】:2012-06-29 10:05:55
【问题描述】:

可能重复:
Change only one of multiple backgrounds on hover

如果你有这样的 CSS 声明:

.selector {
    background: url(image.png), url(image2.png);
}

然后 :hover 你只想改变第一层,例如

.selector:hover {
    background: url(image3.png), url(image2.png);
}

有没有办法将图像更新为 image3.png 而无需重新声明堆栈的其余部分?

【问题讨论】:

    标签: css background-image


    【解决方案1】:

    很遗憾,不,没有办法做到这一点。

    【讨论】:

      猜你喜欢
      • 2021-09-22
      • 2019-07-29
      • 1970-01-01
      • 2015-11-11
      • 1970-01-01
      • 2011-02-03
      • 1970-01-01
      • 2016-10-13
      • 2011-12-24
      相关资源
      最近更新 更多