Writing the select tag directly is the system default style But using trigger to trigger the select drop-down will cause problems $('select').trigger('change') has no effect, $('select').trigger('focus' ) has an effect on IOS and can trigger the drop-down box, but it does not work on Xiaomi. In the end, I used positioning overlay directly and set the transparency of the select to 0;
<select> The native one is not ideal. Different system versions and browser versions will be very different. It is recommended to find a universal UI library instead.
Yes, but the styles of android and ios are different.
It is best to use bootstrap or write the styles yourself.
Yes, just use select
Writing the select tag directly is the system default style
But using trigger to trigger the select drop-down will cause problems
$('select').trigger('change') has no effect,
$('select').trigger('focus' ) has an effect on IOS and can trigger the drop-down box, but it does not work on Xiaomi.
In the end, I used positioning overlay directly and set the transparency of the select to 0;
Using select directly will call the system’s built-in style.
<select> The native one is not ideal. Different system versions and browser versions will be very different. It is recommended to find a universal UI library instead.