It's amazing how fast you start using this framework, but i'm stuck on one seemingly obvious thing. In all the layouts i've seen, including [Theme Roller], there is a lovely padding on all elements. for some bizarre reason, in the entire documentation, nothing is mentioned about creating this much needed space between the UI and the viewport.
How does one define this?
In HTML Desktop it would be as simple as
Any help would be greatly appreciated.
To be sure, i even downloaded the default setting found on Theme Roller, and nothing happens.
I wonder doesn't jQuery mobile have documentation on all the individual classes? Or at least list the different classes on a page somewhere so one can use them?
Below i added an example of what i mean. It's actually form jQuery Mobiles own docs.
What makes things even more confusing is that the button renders with the button having padding, but not the menu.
To clarify, jQuery Mobile has a 'built in' method to simply add rounded corners to things, you just have to add `class="ui-corner-bl ui-corner-br"`... i'm looking ideally for that kinda method.
![enter image description here]
以上就是How to add padding to elements in jQuery Mobile的详细内容，更多请关注web前端其它相关文章！