css background-color背景顏色
說(shuō)明:
設(shè)置或檢索對(duì)象的背景顏色。
對(duì)應(yīng)的腳本特性為backgroundColor。請(qǐng)參閱我編寫(xiě)的其他書(shū)目。
語(yǔ)法:
background-color : transparent | color
參數(shù):
transparent : 背景色透明
color : 指定顏色。請(qǐng)參閱顏色單位和附錄:顏色表
示例:
p { background-color: silver }
div { background-color: rgb(223,71,177) }
body { background-color: #98AB6F }
pre { background-color: transparent; }
作者:大學(xué)生新聞網(wǎng) 來(lái)源:大學(xué)生新聞網(wǎng)
發(fā)布時(shí)間:2025-03-26 閱讀:
- css background背景的使用
- 如使用該復(fù)合屬性定義其單個(gè)參數(shù),則其他參數(shù)的默認(rèn)值將無(wú)條件覆蓋各自對(duì)應(yīng)的單個(gè)屬性設(shè)置。
- 03-26 關(guān)注:0