代码如下:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>css如何生成微软的logo</title>
background-color: #f35322;
background-color: #81dc05;
background-color: #05a6f1;
background-color: #ffba05;
<div class="square red"></div>
<div class="square green"></div>
<div class="square blue"></div>
<div class="square yellow"></div>
<!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>
<!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>