先上代码:

 1 .selectData{
 2         height: 0.42rem;
 3 
 4         position: absolute;
 5         right:.28rem;
 6         top:.30rem;
 7         //去边框
 8         border: none;
 9         outline: none;
10         //圆角
11         -moz-border-radius:0.5rem;
12         -webkit-border-radius:0.5rem;
13         border-radius:0.5rem;
14 
15         background-color: #003366;
16         select{
17           border: none;
18           outline: none;
19           line-height: 0.40rem;
20           //通过padding-left的值让文字居中
21           padding-left:0.1rem;
22           background: none;
23           color: #ffffff;
24          
25           font-style: normal;
26           font-weight:bold;
27         }
28         option{
29           border: none;
30           outline: none;
31           background-color: #003366;
32           color: #ffffff;
33           font-weight:bold;
34         }
35       }
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2021-11-05
猜你喜欢
  • 2022-02-19
  • 2021-12-21
  • 2022-01-25
  • 2021-11-21
  • 2021-11-12
  • 2021-11-24
相关资源
相似解决方案