ps怎么画圆角

1个回答

写回答

cf517800354

2023-03-27 20:17

+ 关注

我们可以使用border-radius属性来设置圆角。

例如,我们可以设置一个div元素的四个角都为20像素的圆角:

div {

border-radius: 20px;

}

我们也可以分别设置水平方向和垂直方向的圆角大小:

div {

border-top-left-radius: 20px 10px;

border-top-right-radius: 10px 20px;

border-bottom-left-radius: 10px 20px;

border-bottom-right-radius: 20px 10px;

}

以上设置会让左上角为水平方向20像素,垂直方向10像素的圆角,右上角为水平方向10像素,垂直方向20像素的圆角,以此类推。

举报有用(17分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号