sans-serif 글꼴을 사용할 때 머리글에 문제가 있습니다. 대부분의 글리프는 산 세리프 글꼴로 포함 된 div의 왼쪽 테두리를 "만지지"않습니다. 글꼴이 클수록 글꼴이 더 분명 해집니다. 따라서 헤더는 다음 일반 텍스트와 정렬되지 않은 것처럼 보입니다.sans-serif 글리프를 컨테이너의 왼쪽 테두리에 "touch"시키는 방법 div?
h1 {
font-family: sans-serif;
font-size: 72px;
font-weight: lighter;
}
.container {
border-left: 1px solid;
}
<div class="container">
<h1>F glyph</h1>
<h1>T glyph</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
http://jsfiddle.net/mishamsk/j73wwqa5/
어떤 해결 방법은 다음과 같습니다
은 샘플 코드?
나는 솔직하게 귀찮게하지 않을 것입니다. 한 가지 옵션은 음수'text-indent '를 추가하는 것이지만, _F_와 _T_ 문자의 차이점에 따라 헤더의 텍스트에 따라 달라집니다. – ckuijjer
그래, 그렇게 보인다. 전 머리글 텍스트를 미리 알 수있는 방법이 없으므로 WordPress 테마를 만들고 있습니다. 나는 그렇게 당황 스럽다. 전에 웹에서 발견하지 못했다;) – mishamsk