Styling <select> tag for iPhone

后端 未结 4 1556
暖寄归人
暖寄归人 2021-01-12 04:18

When a

提交评论

  • 2021-01-12 04:34

    We investigated and couldn't find any reliable way of altering the display so we looked into different libraries. We're having good luck with the Mobiscroll library for jQuery. It is a more up to date project than the cubiq project referred to in other responses.

    The control is themable. You can easily change the appearance of if in CSS. It also comes with pre-defined, nice looking color schemes.

    We chose it because it works across devices allowing for a more consistent look & feel.

    0 讨论(0)
  • 2021-01-12 04:41

    I don't believe you can style the wheel that shows up on the iPhone directly. In fact, even modifying it in browsers has weird support. For example, http://jsbin.com/obake3 doesn't work at all in Chrome, only modifies the actual drop down in Safari and stretches the graphic in a very ugly way in Firefox.

    0 讨论(0)
  • 2021-01-12 04:50

    Taken from Sitepoint Ref

    The select renders slightly differently depending on the browser and operating system in use, and is well known as a troublesome HTML element to style with CSS (because the display is inherited from the operating system, rather than provided by the browser)

    0 讨论(0)
  • 提交回复
    热议问题