body { text-rendering: auto; } * { box-sizing: border-box; } div { display: block; unicode-bidi: isolate; } #app { padding: 10px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; height: 100%; -webkit-user-select: none; user-select: none; } .aplayer { width: 600px; max-width: 100%; margin: 20px 0 40px; } h1 { margin: 0; margin-top: -10px; font-weight: normal; font-size: 40px; letter-spacing: 1px; } h3 { margin-top: 20px; color: #999; font-weight: normal; letter-spacing: 1px; } #jsonSelect { -webkit-appearance: none; /* 去掉默认的浏览器样式 */ -moz-appearance: none; /* Firefox */ appearance: none; /* 标准化 */ width: 200px; padding: 10px 35px 10px 15px; /* 上下填充和右侧的箭头空间 */ font-size: 14px; background-color: #F5F5F5; border: 1px solid #ccc; border-radius: 5px; color: #333; cursor: pointer; position: relative; /* 为伪元素的箭头定位 */ transition: all 0.3s ease; } /* 设置下拉箭头 */ #jsonSelect::after { content: '\25BC'; /* Unicode 字符的下箭头 */ font-size: 10px; color: #333; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; /* 让箭头不影响点击 */ } /* 鼠标悬停时,改变下拉框的边框和背景颜色 */ #jsonSelect:hover { border-color: #F57F17; background-color: #fff; } /* 设置选项样式 */ #jsonSelect option { padding: 10px; font-size: 16px; background-color: #fff; color: #333; } #jsonSelect option:hover { background-color: #F57F17; color: #fff; }