CSS border shorthand when each border has a differ

2019-06-17 08:06发布

Hi,

what is the shorthand for border when borders have different width?

I tried this:

border:1px solid black, 2px solid black, 3px solid black, 4px solid black;

and this:

 border:1px 2px 3px 4px, solid, solid, solid, solid, black, black, black, black;

but none of them work.

Thank you.

1条回答
萌系小妹纸
2楼-- · 2019-06-17 08:23

Use

border: solid black;
border-width: 1px 2px 3px 4px;
查看更多
登录 后发表回答