국경이 너무 넓어지고 숫자에 시작하지 않는 이유를 알아 내려고하고 있습니다.OL Li의 밑에 국경을 두는 방법
http://kansasoutlawwrestling.com/
모형 : 경계가 ul
의 폭이 될 것이다되는 li
의 폭의 크기가 될 것이다 http://kansasoutlawwrestling.com/assets/images/wrestling2.jpg
<div id="sidebar_left">
<a href="#"><img src="assets/images/ad.png" alt="Spotlight Wrestler"/></a>
<div id="top5">
<ol>
<li>Joe Smith</li>
<li>John Michaels</li>
<li>Steve Hart</li>
<li>Bret Hogan</li>
<li>Undertaker</li>
</ol>
</div>
</div>
#sidebar_left{width:300px;float:left;}
#sidebar_left img {}
#top5 ol li {padding:11px 0 11px 0;border-bottom:solid 1px gray;}
#top5 ol li:last-child{border:none;}
모형 링크가 죽었습니다. 편집 : nvm fixed –
국경은 300px입니다. 너비를 너 자신으로 정의했습니다 (조상에서 LI의 너비는 #sidebar_left DIV의 너비와 같습니다). 너는 무엇을 기대 했는가? –
진짜 무법자는 Quirks 모드로갑니다! 진지하게, 당신이 브라우저 호환성 팀의 어색함에 있지 않도록 doctype을 포함하는 것을 고려하고 [유효한 HTML] (http://validator.w3.org/check?uri=http%3A%2F%2Fkansasoutlawwrestling)을 작성하는 것을 고려하십시오. com % 2F). – phihag