五个常用的CSS简写

1,margin/padding。

  

  (演示仅为margin,padding同理,需注意的是padding没有auto)

 

2.background。

  background: [background-color] [background-image] [background-repeat] [background-attachment] [background-position] / [ background-size];

  

 

3.border。

  

  

4.font

  font: [font-style] [font-weight] [font-size]/[line-height] [font-family];

  

 

5.border-radius

  

 

posted @ 2019-07-01 17:43  陌上兮月  阅读(333)  评论(0编辑  收藏  举报