码迷,mamicode.com
首页 > Web开发 > 详细

css中background背景属性概

时间:2016-12-24 09:34:17      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:size   属性   no-repeat   背景图   tom   定位   显示   默认   背景   

 

css中background背景属性概

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;/*背景图片满屏平铺*/

css中background背景属性概

标签:size   属性   no-repeat   背景图   tom   定位   显示   默认   背景   

原文地址:http://www.cnblogs.com/originate918/p/6216655.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!