再來更新一波以前的代碼:
都不記得以前我寫過這些了哈哈哈,記錄一下。
效果是這樣的
<!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>
<!-- <div class="leaf"></div> -->
</body>
</html>