欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!

 

<!DOCTYPE html>

<html >

<head>

  <meta charset="UTF-8">

 

  <title>利用canvas 画布制作逼真的水滴特效</title>

<meta name="keywords" content="利用canvas 画布制作逼真的水滴特效" />

<meta name="description" content="利用canvas 画布制作逼真的水滴特效" />

 

 

      <style>

      /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */

      body {

         background-color: black;

}

canvas {

         position: absolute;

         top: 0;

         left: 0;

         -webkit-filter: blur( 10px ) contrast( 10 );

         -moz-filter: blur( 10px ) contrast( 10 );

         filter: blur( 10px ) contrast( 10 );

}

    </style>

 

 

</head>

 

<body>

  <canvas id=c></canvas>

 

    <script src="js/index.js"></script>

 

</body>

</html>

Css部分:

body {

         background-color: black;

}

canvas {

         position: absolute;

         top: 0;

         left: 0;

         -webkit-filter: blur( 10px ) contrast( 10 );

         -moz-filter: blur( 10px ) contrast( 10 );

         filter: blur( 10px ) contrast( 10 );

}

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/css3-style/c15338.shtml