css background-positionY
說明:
設(shè)置或檢索對象的背景圖像縱坐標位置。必須先指定background-image屬性。默認值為:0%。
該屬性定位不受對象的補丁屬性(padding)設(shè)置影響。
對應(yīng)的腳本特性為backgroundPositionY。請參閱我編寫的其他書目。
語法:
background-positionY : length | top | center | bottom
參數(shù):
length : 百分數(shù) | 由浮點數(shù)字和單位標識符組成的長度值。請參閱長度單位
top : 居頂
center : 居中
bottom : 居底
示例:
p { background-image: url("images/aardvark.gif"); background-positionY: 35%; background-repeat:no-repeat; }
作者:大學(xué)生新聞網(wǎng) 來源:大學(xué)生新聞網(wǎng)
- css background背景的使用
- 如使用該復(fù)合屬性定義其單個參數(shù),則其他參數(shù)的默認值將無條件覆蓋各自對應(yīng)的單個屬性設(shè)置。
- 03-26 關(guān)注:3