Is there working jQuery Mobile sample code for iPhone/Mobile Safari bottom navigation bar?
I have tried to google and code myself but I never really got it working for iPhone/Mobile Safari. The other browsers seem to be fine e.g. Desktop Safari, Desktop Chrome, Android browser.
The code that I tried (and it works just not for Mobile Safari .. doh)
<div data-role="footer" data-position="fixed" data-tap-toggle="false">
<div data-role="navbar">
<ul>
<li><a href="#one" data-icon="custom">Entry</a></li>
<li><a href="#two" data-icon="custom">Winner</a></li>
<li><a href="#three" data-icon="custom">Gallery</a></li>
</ul>
</div><!-- /navbar -->
</div>
Any help is appreciated 🙂
Thanks.
Try the following working example, using custom icons (using jQuery Mobile 1.2.0):
Create a css file
mycss.cssand include the following in it:where
run.pngis the name of your custom icon.Then, in your html file, include the following:
Screenshot (iPhone 5):
PS: Pay attention to the paths of your css / png files!
Let me know if this works for you.