본문 바로가기

현재창닫기 //현재창닫기 $(function(){ $('#window-btn').click(function(){ if ( $.browser.msie ) { window.opener='Self'; window.open('','_parent',''); window.close(); } else { window.close(); // 일반적인 현재 창 닫기 window.open('about:blank','_self').self.close(); // IE에서 묻지 않고 창 닫기 } }) }); 현재창닫기 더보기
모바일 input박스 100% .content { width: 100%; box-sizing: border-box; } 100%에 padding주면 위치 이상으로 넘어가는데 박스사이징 주면 정확하게 떨어짐 ㅋ 더보기
모바일 리셋 /* reset */ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,textarea,p,blockquote,th,td,input,select,textarea,button {margin:0;padding:0} fieldset,img {border:0 none} dl,ul,ol,menu,li {list-style:none} blockquote, q {quotes:none} blockquote:before, blockquote:after,q:before, q:after {content:'';content:none} input,select,textarea,button {font-size:100%;vertical-align:m.. 더보기
모바일 리사이즈 아이프레임 스크롤컨트롤 function resizeIframe(fr) { fr.setExpression('height',ifrm.document.body.scrollHeight); fr.setExpression('width',ifrm.document.body.scrollWidth); } function calcHeight() { //find the height of the internal page var the_height= document.getElementById('the_iframe').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe').height= the_height.. 더보기
폴 체크박스 유효성 검사 내용 개인정보 이용에 동의합니다. (필수) 등록 더보기
속성선택자 요소[속성=값] 속성과 값이 같은 문서 객체를 선택합니다.요소[속성|=값] 속성 안의 값이 특정 값과 같은 문서 객체를 선택합니다.요소[속성~=값] 속성 안의 값이 특정 값을 단어로 시작하는 문서 객체를 선택합니다.요소[속성^=값] 속성 안의 값이 특정 값으로 시작하는 문서 객체를 선택합니다.요소[속성$=값] 속성 안의 값이 특정 값으로 끝나는 문서 객체를 선택합니다.요소[속성 *= 값] 속성 안의 값이 특정 값을 포함하는 문서 객체를 선택합니다. 더보기