想用纯css实现div为圆角,其实并不复杂,代码如下:
border-radius: 4px;
如果想让四周边框圆角角度不同,可参考
border-radius: 2px 0 0 2px;
顺序为:左上、右上,右下、左下。