이미지입력시 발생하는 원픽셀 오류!!ㅜㅜ 정보
이미지입력시 발생하는 원픽셀 오류!!ㅜㅜ본문
보딩패딩마진 !! 3개의 값을 다 0으로 맞추면 일단 못해도 !!!! 당연히 여백은 없어야죠!!!
그러나 !!! 개발자님들은 다들 느끼셨을 거라 생각하는...
<td>
<img src="" alt="" />
</td>
이렇게 태그를 치면
저 앞의 빨간부분의 여백 때문에 !! 이미지옆에 띄어쓰기 한칸이 들어가버리는 불상사!!
저는 <td><img src="" alt="" /></td> 이렇게 해버립니다만 보다 근본적인 해결방법 없을까나요!?
추천
0
0
댓글 1개

table 한 칸에 이미지 한개만 삽입한다면 아래처럼 할 경우 여백 없을것 같네요
<table cellspacing="0" cellpadding="0">
table 한 칸에 이미지 여러개를 삽압한다면 아래처럼 할 경우 여백 없을것 같네요
<table cellspacing="0" cellpadding="0">
<tr>
<td style="font-size:0; letter-spacing:-1px; vertical-align:top">
<img src="test1.jpg" width="150" height="150" alt="" title="">
<img src="test2.jpg" width="150" height="150" alt="" title="">
<img src="test3.jpg" width="150" height="150" alt="" title="">
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0">
table 한 칸에 이미지 여러개를 삽압한다면 아래처럼 할 경우 여백 없을것 같네요
<table cellspacing="0" cellpadding="0">
<tr>
<td style="font-size:0; letter-spacing:-1px; vertical-align:top">
<img src="test1.jpg" width="150" height="150" alt="" title="">
<img src="test2.jpg" width="150" height="150" alt="" title="">
<img src="test3.jpg" width="150" height="150" alt="" title="">
</td>
</tr>
</table>