direction 属性规定文本的方向 / 书写方向。

ltr - 默认。文本方向从左到右。
rtl - 文本方向从右到左。
inherit - 规定应该从父元素继承 direction 属性的值。

在CSS里设置你的 select 添加 direction 属性,值为 rtl 可将select内的option的文字右对齐.
ul li select,
select option {
direction: ltr;
}

相关文章:

  • 2022-12-23
  • 2021-05-24
  • 2022-01-09
  • 2021-09-06
猜你喜欢
  • 2022-12-23
  • 2021-12-15
  • 2021-09-30
  • 2022-01-14
相关资源
相似解决方案