css中background背景属性概述
2011-09-06 17:38
609 查看
1. background:url(背景图片路径) no-repeat;/*不重复默认在左上方*/
2. background:url(背景图片路径) no-repeat center;/*不重复背景图片中间显示*/
3. background:url(背景图片路径) no-repeat bottom center;/*不重复背景图片底部中间显示*/
4. background:url(背景图片路径) no-repeat right top;/*不重复背景图片右上方显示*/
5. background:url(背景图片路径) no-repeat right bottom;/*不重复背景图片右下方显示*/
6. background:url(背景图片路径) no-repeat left bottom;/*不重复背景图片左下方显示*/
7. background:url(背景图片路径) #000 no-repeat;/*背景色上插入不重复背景图片*/
8. background:url(背景图片路径) no-repeat 0px 0px;/*不重复背景图片定位第一个0px是指x轴也就是横向,第二个0px是指y轴也就是纵向*/
9. background:url(背景图片路径) repeat-x;/*背景图片横向平铺*/
10. background:url(背景图片路径) repeat-y;/*背景图片纵向平铺*/
11. background:url(背景图片路径) repeat;/*背景图片满屏平铺*/
2. background:url(背景图片路径) no-repeat center;/*不重复背景图片中间显示*/
3. background:url(背景图片路径) no-repeat bottom center;/*不重复背景图片底部中间显示*/
4. background:url(背景图片路径) no-repeat right top;/*不重复背景图片右上方显示*/
5. background:url(背景图片路径) no-repeat right bottom;/*不重复背景图片右下方显示*/
6. background:url(背景图片路径) no-repeat left bottom;/*不重复背景图片左下方显示*/
7. background:url(背景图片路径) #000 no-repeat;/*背景色上插入不重复背景图片*/
8. background:url(背景图片路径) no-repeat 0px 0px;/*不重复背景图片定位第一个0px是指x轴也就是横向,第二个0px是指y轴也就是纵向*/
9. background:url(背景图片路径) repeat-x;/*背景图片横向平铺*/
10. background:url(背景图片路径) repeat-y;/*背景图片纵向平铺*/
11. background:url(背景图片路径) repeat;/*背景图片满屏平铺*/
相关文章推荐
- css中background背景属性概述(支持原创)
- css中background背景属性概述
- CSS背景属性Background详解
- CSS背景属性Background详解
- CSS中背景图片位置属性background-position
- WEB标准学习路程之"CSS":3.背景Background属性
- CSS背景属性Background详解
- CSS中背景图片滚动属性background-attachment
- CSS下背景属性background的使用方法
- CSS背景图像位置属性background-position百分比详解
- CSS背景图像位置属性background-position百分比详解
- CSS background属性之背景设置详解
- css 背景属性background的使用方法
- CSS背景属性Background详解
- 学习CSS的背景图像属性background
- css背景属性 Background
- CSS背景图像位置属性background-position百分比详解
- CSS下背景属性background的使用方法
- css背景属性background-position如何理解?
- css——background背景属性