body {
background-color: #f2f2f2; /* 设置页面背景颜色为灰色 */
}
.container {
width: 400px;
height: 200px;
background-color: #fff; /* 设置容器背景颜色为白色 */
margin: 50px auto;
padding: 20px;
border: 1px solid #ccc; /* 设置容器边框样式 */
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* 添加容器阴影效果 */
h1 {
text-align: center;
color: #333; /* 设置标题颜色为深灰色 */
font-family: Arial, sans-serif;
p {
color: #666; /* 设置段落文字颜色为灰色 */
line-height: 1.5;
Welcome to CSS Background Example
This is a simple example demonstrating the usage of CSS background properties.
上一篇sql数据库恢复数据
下一篇proliferated