試圖創建網站標題,有一個在左邊/頂部有一個小的空間,不會消失
@import 'https://fonts.googleapis.com/css?family=PT+Sans';
* {
font-family: 'PT Sans', sans-serif;
}
#headerpanel {
display: block;
background-color: red;
width: 100%;
margin: 0px;
padding 0px;
border: 0px;
}
<title>Test Site</title>
<body>
<div id="headerpanel">
TEST
</div>
</body>
我試圖做的是建立一個「頭」,將自啓動非常左側的網站在最右邊20px左右。
但是當我測試的網站,我看到有一個在左上... 我該如何擺脫它這個小空間?
集'保證金:0'到'body' – kukkuz