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