:root { --content-opacity: 0.5; /* 定义透明度变量 */ } /* 选项卡按钮样式 */ .tab { overflow: hidden; border: 1px solid #ff69b4; /* 粉色边框 */ background-color: #ffc0cb; /* 粉色背景 */ } .tab button { background-color: inherit; float: left; border: none; outline: none; cursor: pointer; padding: 14px 16px; transition: 0.3s; color: #000; /* 黑色文字 */ position: relative; } .tab button:hover { background-color: #ff69b4; /* 粉色背景 */ } .tab button.active { background-color: #ff1493; /* 深粉色背景 */ color: #fff; /* 白色文字 */ } /* 添加选项卡按钮样式 */ .addTab { background-color: #ff69b4; /* 粉色背景 */ color: #fff; /* 白色文字 */ border: none; outline: none; cursor: pointer; padding: 14px 16px; transition: 0.3s; } .addTab:hover { background-color: #ff1493; /* 深粉色背景 */ } /* 选项卡内容样式 */ .tabcontent { text-align: center; /* 使“日期”居中显示 */ display: none; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0); /* 粉色边框 */ border-top: none; background-color: rgba(255, 255, 255, 0); /* 白色背景 */ } /* 删除按钮样式 */ .closeButton { background-color: #ff69b4; /* 粉色背景 */ color: #fff; /* 白色文字 */ border: none; outline: none; cursor: pointer; padding: 5px 10px; transition: 0.3s; font-size: 12px; /* 调整字体大小 */ } .closeButton:hover { background-color: #ff1493; /* 深粉色背景 */ } img { height: auto; width: auto\9; width:28%; } .cldBody { background-color: rgba(255, 255, 255, var(--content-opacity)); width: 420px; margin: 10px auto; } .cldBody .top { height: 60px; line-height: 60px; text-align: center; position: relative; } #topDate { font-size: 24px; } #week td { font-size: 15px; } td { width: 60px; height: 60px; line-height: 60px; text-align: center; font-size: 20px; background-color: rgba(255, 255, 255, var(--content-opacity)); } #tbody td:hover { background: rgba(30, 30, 30, 0.2); cursor: pointer; } .curDate { color: red; font-weight: bold; } #left, #right { width: 60px; height: 60px; position: absolute; cursor: pointer; } #left { left: 0; } #right { right: 0; } #left:hover, #right:hover { background-color: rgba(30, 30, 30, 0.2); } .slider-container { display: flex; align-items: center; margin-top: 20px; } input[type="range"] { width: 300px; margin-right: 10px; } span { font-size: 1.2em; font-weight: bold; }