文本_背景_尺寸

文本属性:控制元素内容 颜色 是否居中 间距..

 

Text-indent:控制首行缩进  px em

text-decoration:文字添加下划线 删除线 上划线   none || underline | line-through

text-align水平对齐方式:left center right

 

背景属性:

Background-color

background-image 背景图: 路径是从css文件出发去查找的****

                   当背景图尺寸 > 元素的尺寸 ,超过的部分将隐藏

                   当背景图尺寸< 元素的尺寸 ,横向和纵向 讲平铺

background-repeat : repeat(默认 横向纵向都平铺) | no-repeat 不平铺 | repeat-x 横向 | repeat-y 纵向  是否平铺

background-position:左右  上下    背景图的位置  当背景图 》元素尺寸

background-attachment : scroll 滚动 | fixed 固定                            固定背景图:

 

 

background : background-color || background-image || background-repeat || background-attachment || background-position

background:#ff0000 url(“../imgs/1.jpg”) no-repeat fixed -200px -100px

 

尺寸:

         Width: px

         Height:px

posted @ 2018-05-05 20:03  LloydDracarys  阅读(82)  评论(0)    收藏  举报