Ideally, you should try using jQuery Mobile with your own CSS and JavaScript for non-mobile devices.
You can easily detect the user's browser , and the conditional script includes as html5 [template]: 3
@media screen and (max-device-width: 480px) {
Key things to consider when targeting iPhone users:
- ensure the absence of vital flash objects on the page because it is not supported by many mobile browsers (yet?)
- appropriate screen size (using view meta tag)
- bearing in mind that there are no mouse cursors, that is, no hover / double-clicks, any drag and drop gestures that are different on touch devices are available
- remember all pop-ups are opened in new tabs and will not be displayed at the same time as the main window, use javascript modal divs as an alternative
- check all your javascript and css to ensure that everything looks and (Safari requires the -webkit-prefix prefix for the latest CSS properties)
- create a home screen icon for your website (a good thing to have)
most of these things are covered here
take a look at Safari Dev Center for tutorials / video / coding like etc.
source share