CSS3邮票锯齿效果
分类:实例代码
CSS3邮票锯齿效果属于前端实例代码,有关更多实例代码大家可以查看。
分享一段代码实例,它利用css3实现了邮票锯齿效果。
代码实例如下:
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="author" content="http://www.pipipi.net/" /> <title>前端教程网</title> <style> .bg{ width:300px; height:50px; background:#caca8c; background-image:-webkit-gradient( linear,50% 0,0 100%, from(transparent), color-stop(.5,transparent), color-stop(.5,#d86707), to(#d86707) ), -webkit-gradient( linear,50% 0,100% 100%, from(transparent), color-stop(.5,transparent), color-stop(.5,#d86707), to(#d86707) ); background-size:20px 10px; background-repeat:repeat-x; background-position:0 100%; } </style> </head> <body> <div class="bg"></div> </body> </html>
CSS3邮票锯齿效果,这样的场景在实际项目中还是用的比较多的,关于CSS3邮票锯齿效果就介绍到这了。