이미지 필터
이미지 필터
CSS filter속성은 시각적 효과 (예 : 흐림 및 채도)를 요소에 추가합니다.
참고 : 필터 속성은 Internet Explorer, Edge 12 또는 Safari 5.1 이하에서는 지원되지 않습니다.
예
모든 이미지의 색상을 흑백으로 변경하십시오 (100 % 회색).
img {
-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
filter: grayscale(100%);
}
[전체소스]
<!DOCTYPE html>
<html>
<head>
<style>
img {
width: 33%;
height: auto;
float: left;
max-width: 235px;
}
.blur {-webkit-filter: blur(4px);filter: blur(4px);}
.brightness {-webkit-filter: brightness(250%);filter: brightness(250%);}
.contrast {-webkit-filter: contrast(180%);filter: contrast(180%);}
.grayscale {-webkit-filter: grayscale(100%);filter: grayscale(100%);}
.huerotate {-webkit-filter: hue-rotate(180deg);filter: hue-rotate(180deg);}
.invert {-webkit-filter: invert(100%);filter: invert(100%);}
.opacity {-webkit-filter: opacity(50%);filter: opacity(50%);}
.saturate {-webkit-filter: saturate(7); filter: saturate(7);}
.sepia {-webkit-filter: sepia(100%);filter: sepia(100%);}
.shadow {-webkit-filter: drop-shadow(8px 8px 10px green);filter: drop-shadow(8px 8px 10px green);}
</style>
</head>
<body>
<p><strong>Note:</strong> The filter property is not supported in Internet Explorer, Edge 12, or Safari 5.1 and earlier.</p>
<img src="pineapple.jpg" alt="Pineapple" width="300" height="300">
<img class="blur" src="pineapple.jpg" alt="Pineapple" width="300" height="300">
<img class="brightness" src="pineapple.jpg" alt="Pineapple" width="300" height="300">
<img class="contrast" src="pineapple.jpg" alt="Pineapple" width="300" height="300">
<img class="grayscale" src="pineapple.jpg" alt="Pineapple" width="300" height="300">
<img class="huerotate" src="pineapple.jpg" alt="Pineapple" width="300" height="300">
<img class="invert" src="pineapple.jpg" alt="Pineapple" width="300" height="300">
<img class="opacity" src="pineapple.jpg" alt="Pineapple" width="300" height="300">
<img class="saturate" src="pineapple.jpg" alt="Pineapple" width="300" height="300">
<img class="sepia" src="pineapple.jpg" alt="Pineapple" width="300" height="300">
<img class="shadow" src="pineapple.jpg" alt="Pineapple" width="300" height="300">
</body>
</html>


게시판 목록
퍼블리셔팁
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 1157 | CSS |
zakdok
|
7년 전 | 2878 | |
| 1156 | CSS |
zakdok
|
7년 전 | 2070 | |
| 1155 | HTML |
zakdok
|
7년 전 | 3380 | |
| 1154 | CSS |
|
7년 전 | 2563 | |
| 1153 | CSS | 7년 전 | 2344 | ||
| 1152 | 기타 | 7년 전 | 2188 | ||
| 1151 | 기타 | 7년 전 | 2737 | ||
| 1150 | CSS |
|
7년 전 | 4879 | |
| 1149 | HTML |
루돌프사슴코
|
7년 전 | 3061 | |
| 1148 | 기타 | 7년 전 | 2721 | ||
| 1147 | 기타 | 7년 전 | 2112 | ||
| 1146 | 기타 | 7년 전 | 2278 | ||
| 1145 | CSS | 7년 전 | 2540 | ||
| 1144 | CSS | 7년 전 | 2116 | ||
| 1143 | CSS | 7년 전 | 2380 | ||
| 1142 | CSS | 7년 전 | 2067 | ||
| 1141 | CSS | 7년 전 | 2361 | ||
| 1140 | CSS | 7년 전 | 2144 | ||
| 1139 | 기타 | 7년 전 | 2189 | ||
| 1138 | 기타 | 7년 전 | 2005 | ||
| 1137 | 기타 | 7년 전 | 1895 | ||
| 1136 | 기타 | 7년 전 | 2102 | ||
| 1135 | 기타 | 7년 전 | 1660 | ||
| 1134 | 기타 | 7년 전 | 1880 | ||
| 1133 | HTML | 8년 전 | 3514 | ||
| 1132 | 기타 | 8년 전 | 2415 | ||
| 1131 | 기타 | 8년 전 | 2190 | ||
| 1130 | 기타 | 8년 전 | 1920 | ||
| 1129 | 기타 | 8년 전 | 1467 | ||
| 1128 | CSS | 8년 전 | 2701 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기