Kimyeongkyung
input type="file" css 변경하기 본문
<div className="imgBox">
<label htmlFor="image">Button</label>
<input type="file" id="image" />
</div>
<styled-components>
.imgbox label {
display: inline-block;
padding: .5em .75em;
color: #999;
font-size: inherit;
line-height: normal;
vertical-align: middle;
background-color: #FDFDFD;
cursor: pointer;
border: 1px solid #EBEBEB;
border-bottom-color: #E2E2E2;
border-radius: .25em;
} .imgbox input {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip:rect(0,0,0,0);
border: 0;
}
'important' 카테고리의 다른 글
React Query (0) | 2022.09.30 |
---|---|
프론트엔드 개발자 기술면접 대비 질문 - css (0) | 2022.04.24 |
서버 사이드 렌더링(Server Side Rendering) VS 클라이언트 사이드 렌더링(Client Side Rendering) (0) | 2022.04.15 |
브라우저 저장소(Web storage, cookie) (0) | 2022.04.05 |
리액트 이론_2 (0) | 2022.04.01 |