<style>
.red {
width: 100px;
height: 100px;
background-color: red;
}
.blue {
width: 100px;
height: 100px;
background-color: blue;
}
.green {
width: 100px;
height: 100px;
background-color: green;
}
</style>
</head>
<body>
<div class="red"></div>
<div class="blue"></div>
<div class="green"></div>
</body>

这篇博客展示了如何使用CSS定义三种不同颜色的div元素:红色、蓝色和绿色,分别用于不同的区块展示,强调了网页视觉设计中颜色运用的基本技巧。
2810

被折叠的 条评论
为什么被折叠?



