《背景CSS固定代码》由会员分享,可在线阅读,更多相关《背景CSS固定代码(2页珍藏版)》请在金锄头文库上搜索。
1、全体背景固定:BODYbackground:url(/URL)fixed;右上背景固定:BODYbackground-image:url(背景URL);background-position:100%0%;background-repeat:no-repeat;background-attachment:fixed;右下背景固定:BODYbackground-image:url(背景URL);background-position:100%100%;background-repeat:no-repeat;background-attachment:fixed;左下背景固定:BODYbackgr
2、ound-image:url(背景URL);background-position:0%100%;background-repeat:no-repeat;background-attachment:fixed;左上背景固定:BODYbackground-image:url(背景URL);background-position:0%0%;background-repeat:no-repeat;background-attachment:fixed;中间背景固定:BODYbackground-image:url(背景URL);background-position:50%50%;background-repeat:no-repeat;background-attachment:fixed;横条背景的使用方法:bodybackground-image:url(背景URL);background-attachment:fixed;background-repeat:repeat-y;background-position:left;background-color:#ffffff;