css中background背景属性概述
时间:2009-08-21
来源:互联网
background:url(背景图片路径) no-repeat;/*不重复默认在左上方*/
background:url(背景图片路径) no-repeat center;/*不重复背景图片中间显示*/
background:url(背景图片路径) no-repeat bottom center;/*不重复背景图片底部中间显示*/
background:url(背景图片路径) no-repeat right top;/*不重复背景图片右上方显示*/
background:url(背景图片路径) no-repeat right bottom;/*不重复背景图片右下方显示*/
background:url(背景图片路径) no-repeat left bottom;/*不重复背景图片左下方显示*/
background:url(背景图片路径) #000 no-repeat;/*背景色上插入不重复背景图片*/
background:url(背景图片路径) no-repeat 0px 0px;/*不重复背景图片定位第一个0px是指x轴也就是横向,第二个0px是指y轴也就是纵向*/
background:url(背景图片路径) repeat-x;/*背景图片横向平铺*/
background:url(背景图片路径) repeat-y;/*背景图片纵向平铺*/
background:url(背景图片路径) repeat;/*背景图片满屏平铺*/
转载于:http://www.xinran001.com
background:url(背景图片路径) no-repeat center;/*不重复背景图片中间显示*/
background:url(背景图片路径) no-repeat bottom center;/*不重复背景图片底部中间显示*/
background:url(背景图片路径) no-repeat right top;/*不重复背景图片右上方显示*/
background:url(背景图片路径) no-repeat right bottom;/*不重复背景图片右下方显示*/
background:url(背景图片路径) no-repeat left bottom;/*不重复背景图片左下方显示*/
background:url(背景图片路径) #000 no-repeat;/*背景色上插入不重复背景图片*/
background:url(背景图片路径) no-repeat 0px 0px;/*不重复背景图片定位第一个0px是指x轴也就是横向,第二个0px是指y轴也就是纵向*/
background:url(背景图片路径) repeat-x;/*背景图片横向平铺*/
background:url(背景图片路径) repeat-y;/*背景图片纵向平铺*/
background:url(背景图片路径) repeat;/*背景图片满屏平铺*/
转载于:http://www.xinran001.com
作者: xinran001 发布时间: 2009-08-21
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28