我有这样的事情:
background: url("photo.png") no-repeat scroll center 23px/ 42px 48px,
url("DeleteAtt.png") no-repeat scroll 81px 3px / 20px 20px #656565;
而且在某些情况下我需要隐藏第二个背景, 我该怎么做?
最佳答案
您可以将背景属性重新定义为:
background: url("photo.png") no-repeat scroll center 23px/ 42px 48px #656565;
或者创建一个新类并在您的元素上添加或删除此类。
关于css - 在多个背景中隐藏其中一张背景图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17550724/