五个常用的CSS简写

1,margin/padding。

  五个常用的CSS简写_第1张图片

  (演示仅为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

  五个常用的CSS简写_第2张图片

 

你可能感兴趣的:(五个常用的CSS简写)