秋天到了,叶子黄了,这个时候来用css做出来一个叶子的效果吧~可爱还应景哟!
话不多说,上效果图:(只写了一片出来哈哈哈)
贴代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> .leaf{ width: 100px; height: 100px; border:1px solid green; margin:250px; border-radius: 0 100px; background-image: linear-gradient(135deg,green,yellow) } </style> </head> <body> <div class="leaf"></div>
</body> </html>
|