background-attachment 网页背景固定
来源:互联网 发布:软件学院工程实践 编辑:程序博客网 时间:2024/06/06 08:38
右上固定:------------------------
右下固定:------------------------
左上------------------------
左下-------------------------
正中-----------------------
右边------------------
左边--------------
上边-----------------------
下边
1
<style type=
"text/css"
>
2
<!--
3
body{
4
background-image
:
url
(
"背景url"
);
5
background-position
:
100%
0%
;
6
background-repeat
:
no-repeat
;
7
background-attachment
:
fixed
;}
8
-->
9
</style>
右下固定:
01
<!--
02
body {
03
04
background-image:url(
"5.jpg"
);
05
background-position:100% 100%;
06
background-repeat:repeat-y;
07
background-repeat:no-repeat;
08
background-attachment:right bottom;
09
}
10
-->
左上
1
<style type=
"text/css"
>
2
<!--
3
body{
4
background-image
:
url
(
"背景url"
);
5
background-repeat
:
no-repeat
;
6
background-attachment
:
fixed
;}
7
-->
8
</style>
左下
1
<style type=
"text/css"
>
2
<!--
3
body{
4
background-image
:
url
(
"背景url"
);
5
background-position
:
0%
100%
;
6
background-repeat
:
no-repeat
;
7
background-attachment
:
fixed
;}
8
-->
9
</style>
正中
1
<style type=
"text/css"
>
2
<!--
3
body{
4
background-image
:
url
(
"背景url"
);
5
background-repeat
:
no-repeat
;
6
background-attachment
:
fixed
;
7
background-position
:
center
;}
8
-->
9
</style>
右边
1
<style type=
"text/css"
>
2
<!--
3
body{
4
background-image
:
url
(
"背景url"
);
5
background-position
:
100%
0%
;
6
background-repeat
:
repeat-y
;
7
background-attachment
:
fixed
;}
8
-->
9
</style>
左边
1
<style type=
"text/css"
>
2
<!--
3
body{
4
background-image
:
url
(
"背景url"
);
5
background-repeat
:
repeat-y
;
6
background-attachment
:
fixed
;}
7
-->
8
</style>
上边
1
<style type=
"text/css"
>
2
<!--
3
body{
4
background-image
:
url
(
"背景url"
);
5
background-repeat
:
repeat-x
;
6
background-attachment
:
fixed
;}
7
-->
8
</style>
下边
1
<style type=
"text/css"
>
2
<!--
3
body{
4
background-image
:
url
(
"背景url"
);
5
background-position
:
bottom
;
6
background-repeat
:
repeat-x
;
7
background-attachment
:
fixed
;}
8
-->
9
</style>
0 0
- background-attachment 网页背景固定
- background-attachment
- background-attachment
- background-attachment
- background-attachment
- background-attachment
- background-attachment
- background-attachment:fixed实现背景固定的效果
- CSS背景:background-attachment
- CSS background-attachment 属性
- CSS ----- background-attachment
- 背景附件 background-attachment
- CSS3 background-attachment:属性
- background-attachment: fixed;
- CSS background-attachment属性
- 视差滚动之background-attachment
- CSS中背景图片滚动属性background-attachment
- 滚动视差效果——background-attachment
- Object-C 整理二
- 安卓编程问题1
- iOS开发--http请求设置Cookie
- C#编程 井字游戏
- 第一周编程作业 温度转换
- background-attachment 网页背景固定
- SG函数的详细解释
- Android 语音遥控器的整体分析-HAL层的AudioFlinger
- 读The CSS Box Model有感
- 【MySQL】(1)初涉MySQL
- mysql中show index from tb_name
- mac cscope的安装
- AndroidManifest配置文件简介
- iOS中视图控制器指定自定义UIView