css - 盒子模型圆角边框border-radius

设置盒子的边框为圆角:

设置上下左右 border-radius:10px;

设置上左 border-top-left-radius:10px;
设置上右 border-top-right-radius:10px;

设置下左 border-bottom-left-radius:10px;
设置下右 border-bottom-right-radius:10px;

设置为圆形 border-radius:50%;
设置为圆角 border-radius:设置为当前盒子高度的一半;

 

posted on 2022-03-27 01:09  每天积极向上  阅读(251)  评论(0编辑  收藏  举报

导航