js height 와 width 를 가 져 오 는 방법 설명

2158 단어
 
  



js height width


<br>$(document).ready(function() <br>{ <br>alert(" :"+$(window).height()); // <br>alert(" :"+$(document).height()); // <br>alert(" body :"+$(document.body).height());// body <br>alert(" body border padding margin:"+$(document.body).outerHeight(true));// body border padding margin <br>alert(" :"+($(window).width())); // <br>alert(" :"+$(document).width());// <br>alert(" body :"+$(document.body).width());// body <br>alert(" body border padding margin:"+$(document.body).outerWidth(true));// body border padding margin <br>alert(" , JavaScript :"+screen.height);// , JavaScript <br>alert(" , JavaScript :"+screen.width); <br>}) ; <br> <br> <br>




  • : document.body.clientWidth

  • : document.body.clientHeight

  • : document.body.offsetWidth ( )

  • : document.body.offsetHeight ( )

  • : document.body.scrollWidth

  • : document.body.scrollHeight

  • : document.body.scrollTop

  • : document.body.scrollLeft

  • : window.screenTop

  • : window.screenLeft

  • : window.screen.height

  • : window.screen.width

  • : window.screen.availHeight

  • : window.screen.availWidth




좋은 웹페이지 즐겨찾기