NEWS
實現div層背景圖片在底部顯示的代碼:
div { background:url(/images/bg.jpg) no-repeat fixed; background-position-y:bottom; } |
div { background-image:url(/images/bg.jpg); /*設置div層的背景圖片*/ background-repeat:no-repeat; /*背景圖片不重復顯示*/ background-repeat:repeat; /*背景圖片橫向及縱向重復*/ background-repeat:repeat-x; /*背景圖片橫向重復*/ background-repeat:repeat-y; /*背景圖片縱向重復*/ background-attachment:fixed; /*固定背景圖片*/ background-attachment:scroll; /*滾動背景圖片*/ background-position-x:left; /*背景圖片在橫向的最左方顯示*/ background-position-x:right; /*背景圖片在橫向的最右方顯示*/ background-position-y:top; /*背景圖片在縱向的最上方顯示*/ background-position-y:bottom; /*背景圖片在縱向的最下方顯示*/ } |
本文由廣州網站建設公司-三行網絡原創,轉載請保留版權( 廣州網站建設www.gongxing888.com )三行網絡——專注于企業網站建設、響應式營銷型網站定制,歡迎來電咨詢!熱線:020-85628720、15915767698