开发者

Can I simplify this CSS?

开发者 https://www.devze.com 2023-02-27 02:50 出处:网络
I\'m not sure about this but is there a way I can simplify:开发者_如何学JAVA -moz-border-radius: 10px 0px 0px 10px / 10px 0px 0px 10px;

I'm not sure about this but is there a way I can simplify:开发者_如何学JAVA

-moz-border-radius: 10px 0px 0px 10px / 10px 0px 0px 10px;


You can simplify the horizontal and vetical radii to a single declaration:

-moz-border-radius: 10px 0px 0px 10px;

However, you cannot simplify it further, as radii are only inherited diagonally. (bottom left will take top right's value if bottom left value does not exist).

0

精彩评论

暂无评论...
验证码 换一张
取 消