본문 바로가기

코딩

<img> img 테두리에 흰색 선이 생기는 이유와 해결방법

728x90

https://stackoverflow.com/questions/22096860/removing-default-border-around-an-image-chrome-browser

 

Removing default border around an image - Chrome browser

I can't believe I ran on this problem for the first time. I have searched lot of other similar question on SO regarding the same issue, but none of them worked for me. I have a img tag with a class

stackoverflow.com

img 태그를 쓰려면 src 속성을 필수로 사용해야함.

css의 backgroud속성을 사용하려면 span이나 div등 다른 태그로 바꾸어야함. 

 

'코딩' 카테고리의 다른 글

useEffect refetch  (0) 2022.11.18
framer-motion | custom, mode="wait"  (0) 2022.11.09
offset, 오프셋, 상대주소  (0) 2022.10.19
타입스크립트 튜플  (0) 2022.09.02
React-Icons  (0) 2022.07.25