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