팝업창 리사이즈

일/Jquery 2016. 6. 28. 10:34

 


최종 적으로 브라우저의 outerWidth / outerHeight 지원 여부를 확인하면 모든 브라우저에서
팝업창의 크기를 변경할 수 있습니다.


$(window).load(function() {

 

  var strWidth;

  var strHeight;

 

  //innerWidth / innerHeight / outerWidth / outerHeight 지원 브라우저 

  if ( window.innerWidth && window.innerHeight && window.outerWidth && window.outerHeight ) {

    strWidth = $('#container').outerWidth() + (window.outerWidth - window.innerWidth);

    strHeight = $('#container').outerHeight() + (window.outerHeight - window.innerHeight);

  }

  else {

    var strDocumentWidth = $(document).outerWidth();

    var strDocumentHeight = $(document).outerHeight();

 

    window.resizeTo ( strDocumentWidth, strDocumentHeight );

 

    var strMenuWidth = strDocumentWidth - $(window).width();

    var strMenuHeight = strDocumentHeight - $(window).height();

 

    strWidth = $('#container').outerWidth() + strMenuWidth;

    strHeight = $('#container').outerHeight() + strMenuHeight;

  }

 

  //resize 

  window.resizeTo( strWidth, strHeight );

 

}); 


:

논쟁에서 이기는 38가지 방법

짧은생각 2011. 4. 20. 13:46

요령4 당신의 결론을 상대방이 미리 예측하지 못하게 하라
요령7 질문 공세를 통해 상대방의 항복을 얻어 내라
요령8 상대방을 화나게 만들어라 (오오오!!!)
요령10 역발상으로 상대방의 의표를 찔러라 (오 역발상!!)
요령14 뻔뻔스런 태도를 취하라
요령18 논쟁의 진행을 방해하고 논의를 다른 방향으로 돌려라
요령22 상대가 억지를 쓴다고 큰소리로 외쳐라
요령29 상대방에게 질 것 같으면 화제를 다른 곳으로 돌려라
요령36 의미 없는 말들을 폭포수처럼 쏟아 내라
:

엑셀의 alt+br적용하기.

일/Php 2010. 3. 16. 12:04

php나 asp에서 엑셀로 변환할때 <br>때리면 행이 추가가 되버리는 현상 해결하기..

<style>
br{mso-data-placement:same-cell;}
</style>
: