2016-08-14 3 views
-1

내 웹 사이트의 로딩 페이지를 만들려고 시도 중이지만 왼쪽에는 흰색 줄이 있고 위쪽에는 흰색 줄이 있습니다. 누군가가 이걸 도와주세요. 고마워요.html과 css에 대한 도움

<DOCTYPE html> 
<html> 
<head> 
    <style> 

     html { 
      cursor: none; 
     } 

     .container { 
      background-color: black; 
      position: fixed; 
      width: 100%; 
      height: 100%; 
      z-index: 1000; 
     } 

     p { 
      color: white; 
      text-align: center; 
      position: absolute; 
      top: 0; bottom:0; left: 0; right:0; 
      font-family: courier; 
      font-weight: bold; 
     } 

     img { 
      position: absolute; 
      top: 0; bottom:0; left: 0; right:0; 
      margin: auto; 
     }  

    </style> 

</head> 
<body> 
    <div class="container"> 
      <img src="progress.gif"> 
      <p> Loading... Please wait </p> 
    </div> 

답변

1

그것은 당신이 당신의 CSS에

body { 
    margin: 0; 
} 

을 추가 할 수 있습니다, 기본 마진입니다.

+0

도움을 많이 주셔서 감사합니다 :) – meme