简体   繁体   中英

how to add Select Box arrow in left side

I unable to add the arrow in select box i am using simply css code and finding other script but unable to add the arrow in select box left side

在此处输入图片说明

Any help from any one greatly appreciated.

Use the direction property in css of your select box. The direction property specifies the text direction/writing direction.

select { direction: rtl; }

It has a default value of ltr so change it to rtl. It will move your arrow to left.

I recommend to go with Uniform JS. This will be quite simple to integrate with websites. You will get full flexibility to change the select box.

URL: http://uniformjs.com/

Only thing you need to do is, you need to change the background image as you wish. http://uniformjs.com/images/sprite-aristo.png

To only move the arrow in the left side I have used only css:

select{
  direction: rtl;
}
select option{
  direction:ltr;
}

In this way the option still remain in ltr text.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM