55 lines
1.1 KiB
CSS
55 lines
1.1 KiB
CSS
/* 全局样式 */
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
line-height: 1.6;
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
width: 40%;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
|
|
/* 可选:添加一些内边距,让内容不紧贴容器边缘 */
|
|
padding: 20px;
|
|
|
|
/* 设置背景颜色为纯白色 */
|
|
background-color: #ffffff;
|
|
color: #333;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
body {
|
|
width: 95%;
|
|
/* 全屏展示 */
|
|
padding: 10px;
|
|
/* 适当调整内边距 */
|
|
}
|
|
}
|
|
|
|
/* 定义单选按钮容器样式 */
|
|
.scale-button {
|
|
display: flex;
|
|
gap: 10px;
|
|
/* 按钮之间的间距 */
|
|
}
|
|
|
|
/* 定义单选按钮隐藏样式 */
|
|
.scale-button input[type="radio"] {
|
|
display: none;
|
|
}
|
|
|
|
/* 定义单选按钮标签样式 */
|
|
.scale-button label {
|
|
flex-grow: 1;
|
|
padding: 10px 20px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 定义单选按钮选中时标签样式 */
|
|
.scale-button input[type="radio"]:checked+label {
|
|
background-color: #007BFF;
|
|
color: white;
|
|
} |