JAVASCRIPT
[jQueryMobile] data-role="content" 높이 100%로 채우기
Dayis
2012. 11. 13. 16:41
$(document).ready(function(){
/* data-role="content" 높이 100%로 채우기 */
scroll(0, 0);
var header = $("div[data-role='header']:visible");
var footer = $("div[data-role='footer']:visible");
var content = $("div[data-role='content']:visible");
var viewport_height = $(window).height();
var content_height = viewport_height - header.outerHeight() - footer.outerHeight();
content_height -= (content.outerHeight() - content.height());
$("div[data-role='content']").css('min-height',content_height);
});