search

Home  >  Q&A  >  body text

javascript - Can the mobile page call the radio button of the mobile system?

Can the mobile page call the radio button of the mobile system?

PHPzPHPz2740 days ago869

reply all(5)I'll reply

  • 習慣沉默

    習慣沉默2017-05-24 11:38:18

    Yes, but the styles of android and ios are different.
    It is best to use bootstrap or write the styles yourself.

    reply
    0
  • 阿神

    阿神2017-05-24 11:38:18

    Yes, just use select

    <select>
      <option value ="volvo">Volvo</option>
      <option value ="saab">Saab</option>
      <option value="opel">Opel</option>
      <option value="audi">Audi</option>
    </select>

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-24 11:38:18

    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;

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-24 11:38:18

    Using select directly will call the system’s built-in style.

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-24 11:38:18

    <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.

    reply
    0
  • Cancelreply