2013-02-20 5 views
1

건물 웹 페이지에 10 div 클래스가 2 행 (5 위, 5 위)으로 스택되어 있습니다. 각각 내부에 이미지가 있습니다. Chrome과 Firefox는 하이퍼 링크로 표시되지 않는 작은 텍스트 문구를 제외하고는 모든 것을 올바르게 렌더링합니다 (자세한 내용은이 게시물의 하단 참조). 이것은 내 규범에있는 것이 꺼져 있음을 나에게 알려주지 만, 내 인생에서 무엇을 알아낼 수는 없다. FTP가 라이브 사이트에 업로드 할 때까지 모든 것이 정상적으로 보입니다. 도움을 많이 주시면 감사하겠습니다.IE9에서 제대로 렌더링 할 div를 얻을 수 없습니다.

HTML :

<div id="text-brands"> 
     <h2 class="blueheader">Learn More About Our Featured Brands</h2> 
     <br /> 
    <div class="featuredBrands"> 
    <a href="http://www.attvtedetails.com" target="_blank"><img src="images/Brand Logos/ATT.jpg" width="150" height="150" alt="AT&amp;T" /> </a> </div> 
    <div class="featuredBrands"><a href="http://www.brotherdetails.com" target="_blank"><img src="images/Brand Logos/BROTHER.jpg" width="150" height="150" alt="Brother" /> </div> 
    <div class="featuredBrands"><a href="http://www.dymodetails.com" target="_blank"><img src="images/Brand Logos/DYMO.jpg" width="150" height="150" alt="Dymo" /></div> 
    <div class="featuredBrands"><a href="http://www.fujifilmdetails.com" target="_blank"><img src="images/Brand Logos/FUJI.jpg" width="150" height="150" alt="Fuji Film" /> </div> 
    <div class="featuredBrands"><a href="http://www.hpdetails.com" target="_blank"><img src="images/Brand Logos/HP.jpg" width="150" height="150" alt="HP" /> </div> 
    <div class="featuredBrands"><a href="http://www.imation-memorexdetails.com" target="_blank"><img src="images/Brand Logos/IMATION.jpg" width="150" height="150" alt="Imation" /> </div> 
    <div class="featuredBrands"><a href="http://www.kensingtondetails.com" target="_blank"><img src="images/Brand Logos/KENSINGTON.jpg" width="150" height="150" alt="Kensington" /> </div> 
    <div class="featuredBrands"><a href="http://www.logitechdetails.com" target="_blank"><img src="images/Brand Logos/LOGITECH.jpg" width="150" height="150" alt="Logitech" /> </div> 
    <div class="featuredBrands"><a href="http://www.verbatimdetails.com" target="_blank"><img src="images/Brand Logos/VERBATIM.jpg" width="150" height="150" alt="Verbatim" /> </div> 
    <div class="featuredBrands"><a href="http://www.lexmarkdetails.com" target="_blank"><img src="images/Brand Logos/LEXMARK.jpg" width="150" height="150" alt="Lexmark" /> </div> 

<br /> 
<br /> 
<br /> 
</div> 

CSS : http://www.officesolutions.com/technology-products.html

마지막 질문 (정말 그냥이 사람의 경우 보너스 고려 : 여기

#text-brands { 
    width: 925px; 
    float: left; 
    padding-top: 30px; 
    padding-right: 10px; 
    padding-bottom: 20px; 
    padding-left: 20px; 
} 

.featuredBrands { 
    margin: 0px; 
    padding: 10px; 
    float: left; 
    width: 150px; 
    border: 5px solid #EAEAEA; 
    clear: none; 
    height: 150px; 
    overflow: hidden; 
} 

내가 문제가 있습니다 링크의 도울 수 있습니다. 페이지 맨 아래쪽의 왼쪽에있는 "제품 범주"범주는 하이퍼 링크 (특히 렉스 마크 로고가 지시하는 링크)로 렌더링됩니다. 나는 그 구절 근처에 전혀 마크 업이 없기 때문에 그걸 알아낼 수 없다. 그것은 단지 머리말 일 뿐이지 만, 어떤 이유로 링크로 표시됩니다.

HTML :

<div id="content-bottom"> 
      <div id="sitelinks"> 
      <div class="column" style="border-left: none;"> 
       <p><strong>Product Categories</strong></p> 
       <ul> 
       <li><a href="office-supplies.html">Office Supplies</a></li> 
       <li><a href="furniture-space-planning.html">Furniture &amp; Space Planning</a></li> 
       <li><a href="facility-maintenance-supplies.html">Facility &amp; Maintenance Supplies</a></li> 
       <li><a href="coffee-services.html">Coffee Services</a></li> 
       <li><a href="printing-promotional-products.html">Printing &amp; Promotional Products</a></li> 
       <li><a href="technology.html">Technology</a></li> 
       </ul> 
      </div> 
     </div> 
     </div> 
+0

첫 번째 코드 블록의 이미지 끝 부분에 앵커 태그가 없습니다. 추가하면 문제를 해결할 수 있습니다. 다른 브라우저의 일부는 이와 같은 오류를 고려하여 자동으로 적절하게 렌더링하지만 IE는 그렇지 않습니다. 또한 W3C Markup Validator를 통해 코드를 실행할 수 있으며 오류가 많은 곳을 알려줍니다. – Ian

답변

0

내가 두 번째와 첫 번째 질문의 솔기를 통해 전달하는 링크에 대해 동일하게 혼란 스러워요? 그리고 실제 질문에 IE9의 디스플레이 문제에 대해서는 아무 것도 볼 수 없습니까?

두 번째 질문 코드를 검사 할 때 해당 목록의 링크에 대해 종료 태그가 없습니다.

거기에 최신 버전이 없거나 아주 이상한 이유로 인해 제거되었을 수 있습니다.

그대로 코드 :

<div class="featuredBrands"><a href="http://www.attvtedetails.com" target="_blank"><img src="images/Brand Logos/ATT.jpg" width="150" height="150" alt="AT&amp;T" /> </a> </div> 
     <div class="featuredBrands"><a href="http://www.brotherdetails.com" target="_blank"><img src="images/Brand Logos/BROTHER.jpg" width="150" height="150" alt="Brother" /> </div> 
     <div class="featuredBrands"><a href="http://www.dymodetails.com" target="_blank"><img src="images/Brand Logos/DYMO.jpg" width="150" height="150" alt="Dymo" /></div> 
     <div class="featuredBrands"><a href="http://www.fujifilmdetails.com" target="_blank"><img src="images/Brand Logos/FUJI.jpg" width="150" height="150" alt="Fuji Film" /> </div> 
     <div class="featuredBrands"><a href="http://www.hpdetails.com" target="_blank"><img src="images/Brand Logos/HP.jpg" width="150" height="150" alt="HP" /> </div> 
     <div class="featuredBrands"><a href="http://www.imation-memorexdetails.com" target="_blank"><img src="images/Brand Logos/IMATION.jpg" width="150" height="150" alt="Imation" /> </div> 
     <div class="featuredBrands"><a href="http://www.kensingtondetails.com" target="_blank"><img src="images/Brand Logos/KENSINGTON.jpg" width="150" height="150" alt="Kensington" /> </div> 
     <div class="featuredBrands"><a href="http://www.logitechdetails.com" target="_blank"><img src="images/Brand Logos/LOGITECH.jpg" width="150" height="150" alt="Logitech" /> </div> 
     <div class="featuredBrands"><a href="http://www.verbatimdetails.com" target="_blank"><img src="images/Brand Logos/VERBATIM.jpg" width="150" height="150" alt="Verbatim" /> </div> 
     <div class="featuredBrands"><a href="http://www.lexmarkdetails.com" target="_blank"><img src="images/Brand Logos/LEXMARK.jpg" width="150" height="150" alt="Lexmark" /> </div> 
+1

밤에는 (영국에서는) 항상 어리석은 실수가 있지만, 우리 모두는 긴 하루를 보낸 후 예상대로합니다. –

0

당신은 당신의 첫 번째 코드 블록에 대한 이미지의 끝에서 앵커 태그를 닫는 누락되었습니다. 추가하면 문제를 해결할 수 있습니다. 다른 브라우저의 일부는 이와 같은 오류를 고려하여 자동으로 적절하게 렌더링하지만 IE는 그렇지 않습니다. 또한 W3C Markup Validator를 통해 코드를 실행할 수 있으며 오류가 많은 곳을 알려줍니다.

+0

감사합니다. 이전의 주석 작성자도이를 발견했습니다. 바보 같은 오류였습니다. 이제 모든 것이 올바르게 작동합니다! :) – user2093365

관련 문제