请使用php语言实现一个网页网页顶部区域居中显示四个小方块颜色分别是 RED BLUE YELLOW GREEN 方块大小为10px
<!DOCTYPE html>
<html>
<head>
<title>四个小方块</title>
<style>
.box {
display: inline-block;
width: 10px;
height: 10px;
margin: 0 5px;
border-radius: 2px;
}
.red {
background-color: red;
}
.blue {
background-color: blue;
}
.yellow {
background-color: yellow;
}
.green {
background-color: green;
}
</style>
</head>
<body>
<div style="text-align: center;">
<div class="box red"></div>
<div class="box blue"></div>
<div class="box yellow"></div>
<div class="box green"></div>
</div>
</body>
</html
原文地址: https://www.cveoy.top/t/topic/gsDz 著作权归作者所有。请勿转载和采集!