Home  >  Q&A  >  body text

关于边框问题?

p{
    border-width:2px;
    border-style:dotted;
    border-color:#ccc;
}

p{border:2px dotted #ccc}

不是等价的么?为什么?


看透不说透看透不说透2788 days ago1123

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:49:18

    About the border issue? -PHP Chinese website Q&A-About the border issue? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 迷茫

    迷茫2016-12-26 15:45:38

    第二种是第一种的简单写法,本质是一样的。为了简便。一目了然。当然也可以孰能生巧,前期练习的时候还是尽量写全了好。

    reply
    0
  • Cancelreply