molodechno

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

CSS中有两个核心概念,继承和层叠。

继承是指应用在某个标签上的CSS属性传递给了内部嵌套的标签,通常来说文本类的会被继承(字体,字号,颜色)

css中常用的标签:

文本类:text-algin:center;水平对齐

text-indent:2px;字体大小

text-decoration:none去掉下划线

line-height:20px;行高

letter-spacing:10px;字间距

word-spacing:10px;词间距

em:only-of-type{声明块}父级元素下只存在一个子级时才生效

背景:

background:color/url/repeat/position

分别为颜色,插入图片的路径,是否平铺,定位。

边框:border:3px dashed green;

分别为边框宽度,虚线 颜色。

 

posted on 2017-10-15 16:21  molodechno  阅读(228)  评论(0编辑  收藏  举报