美文网首页
CSS常用属性

CSS常用属性

作者: picassagirl | 来源:发表于2022-02-22 16:44 被阅读0次

1、height width 高 宽

2、line-height:行高

3、display : block/inline/inline-block 块级元素 内联元素 

4、float: left /right/none/inherit

5、clear:both/left/right

6、position:absolute / relative / static(默认)/fixed

7、top bottom left right

8、overflow: hidden/scroll / auto

9、vertical-align : top /middle /bottom

10、z-index:数值越大越在上层

11、transform:rotate(180 deg)旋转180度

12、margin:  外边距

       padding:内边距

13、border :1px solid red;

14、background-image:url(img/1.jpg)

15、background-repeat:no-repeat /repeat-x/repeat-y

16、direction: ltr/rtl

17、text-align : left/right/center

18、text-decoration: underline

19、text-indent:10px;

20、list-style:none;

21、cursor:url(img/1.jpg)

相关文章

网友评论

      本文标题:CSS常用属性

      本文链接:https://www.haomeiwen.com/subject/fivglrtx.html