二、效果
三、代码
<!DOCTYPE html> <head> <meta name="renderer" content="webkit"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> .circle{ width:100px; height:100px; background-color:#cb18f8; border-radius:50px; /* 图形的半径 */ } </style> </head> <body> <div class="circle"></div> </body> </html>
转载请注明:谷谷点程序 » css3 实现圆角正方形,无需图片