border:3px solid #ccc;border-radius:5px;padding:1px;
border-radius:多少px
1 <html> 2 <head> 3 <title>test</title> 4 <style type="text/css"> 5 .box { 6 height: 300px; 7 width: 300px; 8 margin: 0 auto; 9 border: 2px solid #E4E4E4; 10 border-radius: 5px; 11 box-shadow: 0px 0px 1px 1px #f0f0f0; 12 } 13 </style> 14 </head> 15 <body> 16 <div class="box"> 17 </div> 18 </body> 19 <html>
border-radius
一个 box-shadow 就能解决。