CSS3 radial-gradient 径向渐变属性 实现重复半圆角内边框

 

<!DOCTYPE html>
<html>
  <head>
  <meta charset="utf-8">
  <title>JS Bin</title>
  <style type="text/css">
.box { width:960px; height:500px; margin:0 auto; background:#fd6666; background-size:15px 22px; background-repeat:repeat-y;
background-image:-webkit-radial-gradient(left, circle, #fff 45%, transparent 45%); 
background-image:-moz-radial-gradient(left, circle, #fff 45%, transparent 45%);  }
  </style>
  </head>
  <body>
      <div class="box"></div>
  </body>
</html>

 

 

<!DOCTYPE html>
<html>
  <head>
  <meta charset="utf-8">
  <title>JS Bin</title>
  <style type="text/css">
.box { width:960px; height:500px; margin:0 auto; background:#fd6666; background-size:15px 22px; background-repeat:repeat-y; background-position:right;
background-image:-webkit-radial-gradient(right, circle, #fff 45%, transparent 45%); 
background-image:-moz-radial-gradient(right, circle, #fff 45%, transparent 45%);  }
  </style>
  </head>
  <body>
      <div class="box"></div>
  </body>
</html>
posted @ 2014-12-23 14:41  匠人  阅读(1298)  评论(0编辑  收藏  举报