【第11期】 css生成微软microsoft的logo

2023-03-19

代码如下:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css如何生成微软的logo</title>
    <style>
        .microsoft{
            width: 350px;
            margin:25px auto;
        }
        .square.red{
            background-color: #f35322;
        }
        .square.green{
            background-color: #81dc05;
        }
        .square.blue{
            background-color: #05a6f1;
        }
        .square.yellow{
            background-color: #ffba05;
        }
        .square{
            width:150px;
            height:150px;
            margin: 0 10px 10px 0;
            float:left;
        }
    </style>
</head>
<body>
    <div class="microsoft">
        <div class="square red"></div>
        <div class="square green"></div>
        <div class="square blue"></div>
        <div class="square yellow"></div>
    </div>
</body>
</html>
相关内容
最新

坚持的力量

wordpress建站,视频剪辑拍摄,动画制作