可能重複:
Multiple background-images and a background-color我可以在CSS元素上有兩個背景圖像和一個背景顏色嗎?
我可以有兩個背景圖片和背景顏色?
目前我只是有這樣的代碼,以達到預期的效果:
#myelement {
background: url("http://zbee.me/tz/bottom-right.png") no-repeat right bottom,
url("http://zbee.me/tz/top-left.png") no-repeat left top,
url("http://zbee.me/tz/bg.png");
}
但我想用這樣的:
#myelement {
background: url("http://zbee.me/tz/bottom-right.png") no-repeat right bottom,
url("http://zbee.me/tz/top-left.png") no-repeat left top;
background-color: #35434E;
}
這可能嗎?
我想你不需要支持舊瀏覽器? – user123444555621