로고 등 보다 선명한 화질을 위해 웹사이트에 출력될 사이즈보다 큰 이미지를 삽입할 경우, css값으로 이미지를 축소시키면 이미지가 흐려보이는 현상이 있음.
해당하는 이미지의 렌더링 방식을 css에서 변경해주면 해결됨
img {
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
-ms-interpolation-mode: nearest-neighbor;
image-rendering: crisp-edges;
}
'Coding > HTML+CSS' 카테고리의 다른 글
[CSS] object-fit로 img 사이즈 맞추기 (0) | 2022.02.07 |
---|---|
[CSS] justify-content: flex-end 속성이 안 먹는 이유 (0) | 2021.12.29 |
[CSS] text에 그라데이션 먹이기 (1) | 2021.09.30 |
[CSS] IE에서 flexbox 이미지 버그 해결방법 (0) | 2021.07.07 |
[CSS] 글씨 써두고 bg에 먹인 아이콘만 보이고 싶을 때 (0) | 2021.06.24 |