發新話題

HTML的上、下、左、右 固定背景語法

HTML的上、下、左、右 固定背景語法

引用:
誰說背景圖不可以更變?!
可以依照個人的喜好來變唷!

<STYLE type=text/css>BODY {BACKGROUND: #ffffff url(圖片網址) no-repeat right bottom fixed 100% 100%;}</STYLE>
↑右下固定背景。

<STYLE type=text/css>BODY {BACKGROUND: #ffffff url(圖片網址) no-repeat right top fixed 100% 100%;}</STYLE>
↑右上固定背景。


<style type="text/css">BODY {BACKGROUND: #ffffff url(圖片網址) no-repeat left top fixed 100% 100%;}</style>
↑左上固定背景。

<style type="text/css">BODY {BACKGROUND: #ffffff url(圖片網址) no-repeat left fixed 100% 100%;}</style>
↑左下固定背景。


<style type="text/css">BODY {BACKGROUND: #ffffff url(圖片網址) no-repeat repeat-y left 100% 100%;}</style>
↑左邊並排背景。

<style type="text/css">BODY {BACKGROUND: #ffffff url(圖片網址) no-repeat repeat-y 100% 100%;}</style>
↑右邊並排背景。

<style type="text/css">BODY {BACKGROUND: #ffffff url(圖片網址) no-repeat repeat-x top fixed 100% 100%;}</style>
↑上邊並排背景。

<style type="text/css">BODY {BACKGROUND: #ffffff url(圖片網址) no-repeat repeat-x fixed 100% 100%;}</style>
↑下邊並排背景。

TOP

發新話題

本站所有圖文均屬網友發表,僅代表作者的觀點與本站無關,如有侵權請通知版主會盡快刪除。