1. 문제
inline-block 속성이 있는 경우 공백이 발생합니다
2. 해결방법
1.
1) 요소 사이의 공백 제거
<span style="color: #0000ff"><</span><span style="color: #800000">div </span><span style="color: #ff0000">class</span><span style="color: #0000ff">="space"</span><span style="color: #0000ff">></span> <span style="color: #0000ff"><</span><span style="color: #800000">a </span><span style="color: #ff0000">href</span><span style="color: #0000ff">="##"</span><span style="color: #0000ff">>A</span><span style="color: #0000ff"></</span><span style="color: #800000">a </span><span style="color: #0000ff">><</span><span style="color: #800000">a </span><span style="color: #ff0000">href</span><span style="color: #0000ff">="##"</span><span style="color: #0000ff">><font color="#000000">B</font></span><span style="color: #0000ff"></</span><span style="color: #800000">a </span><span style="color: #0000ff">><</span><span style="color: #800000">a </span><span style="color: #ff0000">href</span><span style="color: #0000ff">="##"</span><span style="color: #0000ff">><font color="#000000">C</font></span><span style="color: #0000ff"></</span><span style="color: #800000">a</span><span style="color: #0000ff">></span> <span style="color: #0000ff"></</span><span style="color: #800000">div</span><span style="color: #0000ff">></span>
<span style="color: #0000ff"><</span><span style="color: #800000">div </span><span style="color: #ff0000">class</span><span style="color: #0000ff">="space"</span><span style="color: #0000ff">></span> <span style="color: #0000ff"><</span><span style="color: #800000">a </span><span style="color: #ff0000">href</span><span style="color: #0000ff">="##"</span><span style="color: #0000ff">><font color="#000000">A</font></span><span style="color: #000000"> </span><span style="color: #0000ff"><</span><span style="color: #800000">a </span><span style="color: #ff0000">href</span><span style="color: #0000ff">="##"</span><span style="color: #0000ff">><font color="#000000">B</font></span><span style="color: #000000"> </span><span style="color: #0000ff"><</span><span style="color: #800000">a </span><span style="color: #ff0000">href</span><span style="color: #0000ff">="##"</span><span style="color: #0000ff">><font color="#000000">C</font></span><span style="color: #0000ff"></</span><span style="color: #800000">a</span><span style="color: #0000ff">></span> <span style="color: #0000ff"></</span><span style="color: #800000">div</span><span style="color: #0000ff">></span>
1. 음수 여백 값을 사용하세요. (여백 오른쪽 값은 브라우저마다 다를 수 있습니다.)
<span style="color: #800000">.space a </span>{<span style="color: #ff0000"> display</span>:<span style="color: #0000ff"> inline-block</span>;<span style="color: #ff0000"> margin-right</span>:<span style="color: #0000ff"> -3px</span>; }
<span style="color: #800000">.space </span>{<span style="color: #ff0000"> font-size</span>:<span style="color: #0000ff"> 0</span>;
}<span style="color: #800000"> .space a </span>{<span style="color: #ff0000"> font-size</span>:<span style="color: #0000ff"> 12px</span>; }
<span style="color: #800000">.space </span>{<span style="color: #ff0000"> letter-spacing</span>:<span style="color: #0000ff"> -3px</span>; }<span style="color: #800000"> .space a </span>{<span style="color: #ff0000"> letter-spacing</span>:<span style="color: #0000ff"> 0</span>; }
<span style="color: #800000">.space </span>{<span style="color: #ff0000"> display:inline-table;(为了兼容Chrome)</span>
<span style="color: #ff0000"> word-spacing</span>:<span style="color: #0000ff"> -6px</span>; }<span style="color: #800000"> .space a </span>{<span style="color: #ff0000"> word-spacing</span>:<span style="color: #0000ff"> 0</span>; }
인라인 블록과 기준선
https://segmentfault.com/a/1190000002668492