css-background属性
来源:互联网 发布:fc2最新手机视频域名 编辑:程序博客网 时间:2024/06/07 23:25
在CSS2.1里,
background属性的简写方式包含五种属性值
background: [background-color] [background-image] [background-repeat]
[background-attachment] [background-position] / [ background-size]
background属性的简写方式包含五种属性值
background-color,
background-image,
background-repeat,
background-attachment,
background-position。
举例:
background: #ccc none repeat scroll 0 0;
background:transparent none repeat scroll 0% 0%
分别代表:背景属性:背景颜色 背景图片 背景是否重复 背景时候随浏览器滚动 背景平位置 背景垂直位置
其中:
transparent表示透明无颜色
none 表示没有设置背景图片
repeat 表示图片重复
scroll 表示背景图片随浏览器下拉而滚动
0%水平位置在x0
0%垂直位置在y0
background: [background-color] [background-image] [background-repeat]
[background-attachment] [background-position] / [ background-size]
[background-origin] [background-clip];
background-position 属性设置背景图像的起始位置
background-positon:属性值;
第一种情况background-position:x(数值),y(数值);
说明:
x(数值) 设置网页的横向位置
y(数值) 设置网页的纵向位置
第一种情况background-position:top,left;
说明:
top left 左上
top center 靠上居中
top right 右上
left center 靠左居中
center center 正中
right center 靠右居中
bottom left 左下
bottom center 靠下居中
bottom right 右下
0 0
- [CSS]CSS background属性
- CSS background-position 属性
- css背景属性 Background
- css 属性 background:transparent;
- css的background属性
- CSS background-position 属性
- css background 各种属性
- CSS background属性详解
- CSS background 属性
- CSS background-repeat 属性
- CSS background-attachment 属性
- css属性扫一遍吧---------background。
- CSS background 属性
- CSS background-repeat 属性
- CSS background-position 属性
- CSS background-repeat 属性
- css的background 属性
- css background属性
- Linux-(C)网络编程学习socket(初步)
- ASP.NET 用MultiView和View实现选项卡效果
- 欢迎使用CSDN-markdown编辑器
- View控件居中
- 将master分支内容合并到dev分支
- css-background属性
- 按首字符的大小,进行字符串排序
- poj1321 深搜。。呵呵
- 炫酷的circleprogress
- MINUS,INTERSECT和UNION ALL比较
- Mapnik概述
- Image的AccessibilityIdentifier属性使用
- C# 实现打开和关闭可执行文件
- hdu 2853