css常用属性

盒子模型:

1,外边距(margin)、边框(border)、内边距(padding

             上下内边框    左右内边框

3padding:上  右 下 左

4margin:同上

5.border:大小 样式 颜色;

6.border_radius:大小;圆角Span 行级元素(横排)

7.displayblock/inline   (行变块可以加长度加高度)

                     /

8.margin: 上下   左右;

9 ,a:hover 鼠标悬停

10.line_height:大小;(行高)

 

 

background有关内容

background-repeat:no-repeat(不重复)

                               repeat-y (y轴重复)

                       repeat-xx轴重复)

background-positio(图片位置):center center(正中间)

                                        top left(左上)

                                       top center(顶上居中)

                                      bottom()

 

文字

  font-weight:[100~900]    文字粗细 500为默认值

  text-ailgn:       文字水平方向

  line-height                      行距

  font-size                         字体大小

  text-decoration:none;去除a标签下划线

  font-style:normal - 文本正常显示

                     italic - 文本斜体显示

 

posted @ 2017-12-27 19:35  hey-李高冷  阅读(116)  评论(0编辑  收藏  举报