:not() ์ ํ์ | |
์ ์ | ํ์์์๋ง ์ ์ฉ css ์คํ์ผ์ ํน์ ์ ํ์๋ง ์ ์ธํ๊ณ ์ถ์๋ ์ฌ์ฉ |
์์ |
/* input type text ์ค .input_file์ ์ ์ธ */
.inquiry_page .inquiry_area input[type=text]:not(.input_file) {
width: 100%;
height: 45px;
background: #f8f8f8;
border: none;
padding: 0 15px;
}
|
๋ฌธ์์์ฑํ์ input ํ์ text ์ ๊ณตํต ํด๋์ค๋ก ๋์์ธ์ ์ฃผ์๋ค.
/* input type text ์ค .input_file์ ์ ์ธ */
.inquiry_page .inquiry_area input[type=text]:not(.input_file) {
width: 100%;
height: 45px;
background: #f8f8f8;
border: none;
padding: 0 15px;
}
์ด๋ :not ๋ถ์ ํด๋์ค๋ก file ์ ํ์๋ฅผ ์ง์ ํด file ๋ถ๋ถ๋ง ๋์์ธ์ด ๋ค๋ฅด๋ฏ๋ก ๋นผ์ฃผ๊ณ ์ ์ฉํ์๋๋ฐ
์ญ์ ํด๋ณด๋ฉด ์๋์ ๊ฐ๋ค
'CSS๐ง > css ์ ํ์&๊ฐ์ํด๋์ค,๊ณตํตํด๋์ค' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
CSS :nth-child(n) even, 2n ์ง์๋ฒ์งธ ์ค์ (0) | 2022.10.28 |
---|---|
css ์ ํ์ ์ ๋ฆฌ (0) | 2022.10.09 |
CSS ๊ณตํตํด๋์ค [class^=] & background ์์ด์ฝ ๊ณตํต ๋ณ๊ฒฝ (0) | 2022.10.02 |
CSS :nth-child(n) ๊ฐ์์ ํ์ nav ์ค์ (0) | 2022.09.18 |
css before, after ๊ฐ์์ ํ์ ์ ๋ฆฌ (0) | 2022.09.04 |
๋๊ธ