/* 示例代码:一个简单的 CSS 样式表 */
/* 设置页面背景颜色 */
body {
background-color: #f0f0f0;
}
/* 设置标题样式 */
h1 {
color: #333;
font-family: Arial, sans-serif;
text-align: center;
}
/* 设置段落文本样式 */
p {
font-size: 16px;
line-height: 1.5;
margin: 20px;
text-indent: 2em;
}
/* 设置按钮样式 */
button {
background-color: #007BFF;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
/* 悬停时改变按钮颜色 */
button:hover {
background-color: #0056b3;
}
如果你需要更多样式的示例或特定功能的实现,请告诉我!
上一篇:css绝对定位和相对定位
下一篇:css样式表的三种类型
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站