InterviewSolution
| 1. |
How To Divide A Page Into Parts Using Jquery Mobile? |
Answer»
Here's one way to GET the device height: var viewportHeight = document.documentElement.clientHeight; Here's another (that I haven't tried, but should work) because jQuery Mobile sets the device height as min-height CSS for the page. (And assuming you already have a $page variable with the page.) var viewportHeight = parseFloat($page.css('min-height')); Then, you can: $page.height(viewportHeight + 'px'); Here's one way to get the device height: var viewportHeight = document.documentElement.clientHeight; Here's another (that I haven't tried, but should work) because jQuery Mobile sets the device height as min-height CSS for the page. (And assuming you already have a $page variable with the page.) var viewportHeight = parseFloat($page.css('min-height')); Then, you can: $page.height(viewportHeight + 'px'); |
|