<hr>
HTML 태그를 사용하여 만든 간단한 테두리 스타일을 테스트하려고합니다. 수직선과 수평선으로 구성됩니다. 수직선은 완벽하게 표시되지만, 수평선에는 끝 부분에 작은 이상한 곡선이 있습니다. 왜 그런 일이 발생하는지 잘 모르겠습니다. 누군가가 문제를 알고 있습니까? 여기 <hr> 1px의 수평선이 완벽하지 않습니다.
<div style="width:680px; height:540px; position: relative;">
<hr style="height: 23%; width: 0.01em; position: absolute; left: 35.3%; top: 5.5%;">
<hr style="height: 18%; width: 0.01em; position: absolute; left: 35.3%; top: 40.5%;">
<hr style="height: 20%; width: 0.01em; position: absolute; left: 35.3%; top: 70.5%;">
<hr style="height: 23%; width: 0.01em; position: absolute; left: 65.9%; top: 5.5%;">
<hr style="height: 18%; width: 0.01em; position: absolute; left: 65.9%; top: 40.5%;">
<hr style="height: 20%; width: 0.01em; position: absolute; left: 65.9%; top: 70.5%;">
<hr style="width: 22%; height: 0.01em; position: absolute; left: 7.7%; top: 34.5%;">
<hr style="width: 19%; height: 0.01em; position: absolute; left: 41.2%; top: 34.5%;">
<hr style="width: 21%; height: 0.01em; position: absolute; left: 71.8%; top: 34.5%;">
<hr style="width: 22%; height: 0.01em; position: absolute; left: 7.7%; top: 64.5%;">
<hr style="width: 19%; height: 0.01em; position: absolute; left: 41.2%; top: 64.5%;">
<hr style="width: 21%; height: 0.01em; position: absolute; left: 71.8%; top: 64.5%;">
</div>
가 jsfiddle 링크입니다 :
먼저 디버그를 용이하게하기 위해 공통 속성에 대한 클래스를 사용하는 것이 좋습니다. 그리고 내가 본 곳에서 수직선은 수평선과 같은 sme 문제가 있습니다 ... –
FireFox (최신 버전)에 어떤 문제도 보이지 않습니다. 또한 HR 태그는 자동으로 닫아야합니다. '
'은 XHTML과 호환됩니다. – Dave
@DaveRook 강박하지 않습니다. –