javascript
  • jquery
  • asp.net
  • 2013-06-19 2 views 0 likes 
    0

    인쇄용 문서를 준비하려고하는데 작은 로고를 넣고 싶습니다. Mozilla Firefox 및 IE에서는 이미지가 제대로로드되지만 Google 크롬에는로드되지 않습니다. 나는 그 문제가 뭔지 모른다. 어떤 제안? 여기 내 코드의 일부이다 :이미지가 Google 크롬에로드되지 않습니다.

    mywindow.document.write("<table border='solid gray 1px' style='text-align:center'>"); 
    mywindow.document.write("<tr><td><img src='CSS/images/logosmall.jpg'></img><td><td> <span style='font-family:Tahoma'>HELLO</span></td></tr>"); 
    
    mywindow.document.write("</body></html>"); 
    
         mywindow.print(); 
         mywindow.close(); 
    
    +1

    '가'할 수있다보십시오''내가 그 문제에 대한 이유는 말을하고 있지 않다. –

    +0

    나는 그것을 시도했지만 결과가 없습니다. 어떤 방법 으로든 고마워. –

    +0

    img 태그와 td의 종료 태그 누락과 같은 html 문제가 있습니다. html로 업데이트 해주세요. 내 대답을 참조하십시오. – Champ

    답변

    0

    var strHtml = "<table border='solid gray 1px' style='text-align:center'>"; 
        strHtml += "<tr><td><img src='CSS/images/logosmall.jpg' /></td><td><span style='font-family:Tahoma'>HELLO</span></td></tr></table>"; 
        strHtml += "</body></html>"; 
    
        mywindow.document.write(strHtml); 
        mywindow.print(); 
        mywindow.close() 
    
    +0

    나는 이것을 시도했지만 다시는 결과를 보지 못했습니다. –

    +0

    나는 이것을 시도하고 크롬 버전 27.0.1453.110 m에서 작업 중 내 대답의 마지막 수정 된 버전을 가지고 크롬의 버전을 확인하십시오 – Champ

    +0

    내 버전은 당신과 동일합니다 –

    관련 문제