Jquery & Mobile
[JqueryMobile] - JqueryMobile Device 가로세로 길이구하는 소스 예제
Vivara
2011. 9. 1. 11:28
반응형
<script type="text/javascript">
var client_width = "";
var client_height = "";
$(function(){
report();
});
function report() {
$('#display').html(
$('#load').width()+'x'+$('#load').height()
);
client_width = $('#load').width() + "px";
client_height = $('#load').height() + "px";
}
</script>
</body>
</script>
<body onresize="report()">
<!-- Start of first page -->
<div data-role="page" id="load" style="display: none;">
<div data-role="header" data-backbtn="false">
</div>
<div data-role="content">
<div id="display">
</div>
</div>
<div data-role="footer" >
</div>
</div>
반응형