2012-07-19 3 views
0

QWebView이있는 소프트웨어를 사용하여 HTML 개의 파일을 표시하고 있습니다. 내 문제는 환영 페이지가 잘 표시되지 않는다는 것입니다. this처럼 보이면 중앙의 빨간색 선 사이에 이미지가 있어야합니다. 문제는 확실히 내 HTML 및/또는 CSS. So here is my HTML`입니다 :HTML 페이지가 QWebview에 바로 표시되지 않습니다.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<title>Untitled Document</title> 
<link href="styles/accueil.css" rel="stylesheet" type="text/css" media="screen" /> 
</head> 

<body> 

    <div class="container"> 

     <div class="ligne">&nbsp;</div> 

    </div> 

    <div class="ligne">&nbsp;</div>  
</body> 
</html> 

그리고 내 CSS :

@charset "UTF-8"; 
/* CSS Document */ 

body{ 
    background-color:white; 
    margin:0 auto; 
    height:100%; 
} 

html { 
    overflow-y: scroll; 
    height:100%; 
} 

img{ 
    border:none; 
} 

.container { 
    min-height: 100%; 
    height: auto !important; 
    height: 100%; 
    margin: 0 auto -20px; 
    background-image: url(../icones/accueil.jpg); 
    background-repeat:no-repeat; 
    background-position:center center; 
} 

.ligne{ 
    width:100%; 
    height: 20px; 
    background-color:#ee1b2e; 
} 

내가 잘못 쓴의 어떤 생각?

감사합니다.

------ 수정 ------

에만 발생 ... MAC, 7, Vista에서 그것을 찾을 작동 XP에있다. 당신이 사용하는 경우 그것은 내가 왜 정확하게 확실하지 않다 this

+0

누군가 다른 사람이 페이지를 만들 수있는 방법이 있다면 시도해 보겠습니다. 나는 HTML CSS에 그렇게 좋지 않아 마음을 열었습니다. – castors33

답변

0

같이해야하지만, 문제는 내 이미지했다 ... 내가 대신

0

내가이 추측 .JPG의 .PNG 이미지를 가지고하는 것입니다 필요 Qt가 설치되지 않은 컴퓨터의 qwebview 프로그램. 그렇다면 프로그램 디렉토리 폴더 [imageformats]에 추가하십시오. 그냥 Qtdir에서 복사하십시오. 기본적으로 Qt는 * .png 및 * .svg 형식을 지원합니다. * .jpg 및 Windows 용 dll 집합이 필요한 기타 형식을 지원합니다.

관련 문제