我的五星红旗
<!DOCTYPE html> <html> <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> div.container { width: 870px; height: 580px; margin: 0 auto; background-color: red; position: relative; } div.center { display: block; width: 0px; height: 0px; border-top: 64px solid yellow; border-left: 85px solid transparent; border-right: 85px solid transparent; position: absolute; left: 64px; top: 124px; } div.center::before, div.center::after { display: block; content: ""; width: 0px; height: 0px; border-top: 64px solid yellow; border-left: 85px solid transparent; border-right: 85px solid transparent; position: absolute; left: -85px; top: -64px; } div.center::before { transform: rotate(-69deg); } div.center::after { transform: rotate(69deg); } div.right1 { transform: translate(130px, -80px) scale(0.2) rotate(30deg); } div.right2 { transform: translate(160px, -30px) scale(0.2) rotate(-30deg); } div.right3 { transform: translate(160px, 30px) scale(0.2) rotate(0deg); } div.right4 { transform: translate(130px, 80px) scale(0.2) rotate(30deg); } </style> </head> <body> <div class="container"> <div class="center"> </div> <div class="center right1"> </div> <div class="center right2"> </div> <div class="center right3"> </div> <div class="center right4"> </div> </div> </body> </html>
18
收起
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星