input[type='file'] 커스텀 CSS 2015. 4. 28. 16:46 :: CSS :: .typeTxt{float:left;} .file_wrap{position:relative;width:100px;height:23px;overflow:hidden;} .typeButton{width:100px;position:absolute;top:0;right:0;background-color:#ff4081;color:#ffffff;border-style:solid;} .typeHidden{font-size:23px;position:absolute;right:0;top:0;opacity:0; filter:alpha:alpha(opacity=0); -ms-filter:"alpha(opacity=0)"; -khtml-opacity:0; -moz-opacity:0; } :: html :: <input id="fileName" class="typeTxt" readonly="readonly"/> <div class="file_wrap"> <input type="button" value="Search files" class="typeButton"/> <input type="file" class="typeHidden" title="" onchange="javascript:document.getElementById('fileName').value=this.value"/> </div> 공유하기 게시글 관리 날고싶은 우듕듕 저작자표시 'CSS' 카테고리의 다른 글 상하단 고정 레이아웃 (0) 2015.04.30 마우스 커서 (0) 2015.04.28 가운데 정렬 (0) 2015.04.28 Gradients 그라디언트 (0) 2015.04.28 display 속성 (0) 2015.04.24 Posted by 우듕듕
IE9 이상으로 브라우저를 업그레이드하거나, 크롬, 파이어폭스 등 최신 브라우저를 이용해주세요.