/* pages/student/diandang/dd-yes/dd-yes.wxss */ .container { height: 100vh; background-size: cover; background-position: center; } .rectangle1 { position: absolute; flex-direction: row; /* 元素横向排列 */ left: 0px; /* 矩形左上角的横坐标 */ top: 526px; /* 矩形左上角的纵坐标 */ width: 372px; /* 矩形的宽度 */ height: 47px; /* 矩形的高度 */ background-color: #e9b464; /* 矩形的背景颜色 */ border: 2px solid #bbbbbb; /* 矩形的边框 */ z-index: 1; display: flex; /* 使用 flexbox 布局 */ align-items: center; /* 垂直居中 */ justify-content: space-around; /* 水平分布 */ } .radio-label { display: flex; align-items: center; margin-right: 5px; /* 元素之间的间距 */ } .radio-input { display: none; } .radio-custom { width: 20px; height: 20px; border: 2px solid #333; border-radius: 50%; position: relative; margin-right: 5px; } .radio-input:checked + .radio-custom { border-color: green; /* 选中后边框颜色 */ } .radio-input:checked + .radio-custom::after { content: ""; display: block; width: 12px; height: 12px; background-color: green; /* 选中后圆点颜色 */ border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .radio-text { font-size: 18px; color: #333333; } .rectangle2 { position: absolute; left: 0px; /* 矩形左上角的横坐标 */ top: 577px; /* 矩形左上角的纵坐标 */ width: 372px; /* 矩形的宽度 */ height: 130px; /* 矩形的高度 */ background-color: #cd8b01; /* 矩形的背景颜色 */ z-index: 2 } .custom-text { position: absolute; /* 绝对定位 */ left: 0px; /* 距离左侧50px */ top:589px; /* 距离顶部50px */ font-size: 18px; /* 字号 */ margin: 10px; /* 边距 */ line-height: 20px; /* 行间距 */ color: #f2de12; /* 文本颜色 */ padding: 10px; /* 内边距 */ z-index: 3 } .boss-image { position: absolute; /* 绝对定位 */ left: 100px; /* 距离左侧200px */ top: 185px; /* 距离顶部150px */ width: 300px; /* 图片宽度 */ height: auto; /* 图片高度自适应 */ z-index: 2; /* 设置z-index,确保在前面 */ } .dd-image { position: absolute; /* 绝对定位 */ left: 128px; /* 距离左侧200px */ top: 50px; /* 距离顶部150px */ width: 120px; /* 图片宽度 */ height: auto; /* 图片高度自适应 */ z-index: 2; /* 设置z-index,确保在前面 */ } .yun-image { position: absolute; /* 绝对定位 */ left: 50px; /* 距离左侧200px */ top: 250px; /* 距离顶部150px */ width: 160px; /* 图片宽度 */ height: auto; /* 图片高度自适应 */ z-index: 2; /* 设置z-index,确保在前面 */ } .boss-text { position: absolute; /* 绝对定位 */ left: 48px; /* 距离左侧50px */ top:275px; /* 距离顶部50px */ font-size: 18px; /* 字号 */ margin: 10px; /* 边距 */ line-height: 20px; /* 行间距 */ color: #4f4f4f; /* 文本颜色 */ font-weight: bold; padding: 10px; /* 内边距 */ z-index: 5 } .fanhui-image { position: absolute; /* 绝对定位 */ left: 0px; /* 距离左侧200px */ top: 0px; /* 距离顶部150px */ width: 70px; /* 图片宽度 */ height: auto; /* 图片高度自适应 */ z-index: 7; /* 设置z-index,确保在前面 */ }