PHP 实现网页顶部居中显示四个彩色方块
<!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/ovDk 著作权归作者所有。请勿转载和采集!