Combining border-top,border-right,border-left,border-bottom in CSS

后端 未结 5 1180
长情又很酷
长情又很酷 2020-12-03 13:02

Is there a way of combining border-top,border-right,border-left,border-bottom in CSS like a super shorthand style.

eg:

border: (1px solid #ff0) (2px         


        
5条回答
  •  北海茫月
    2020-12-03 13:36

    No you can't set them as single one for example if you have div{ border-top: 2px solid red; border-right: 2px solid red; border-bottom: 2px solid red; border-left: 2px solid red; } same properties for all fours then you can set them in single line

    div{border:2px solid red;}
    

提交回复
热议问题