2015-12-05 36 views
0

我一直在梳理本網站上的代碼,我無法弄清楚是什麼導致在網站的最頂部顯示額外的空間。在頂部的米色條之前有一個10px的白色空間,我需要將其去掉。在主頁上它不在那裏。無法找出什麼是造成在網站頂部的額外間距

的網址是:Broken spacing

我曾考察這件事上下,甚至做了並排的文件比較一側,並不能找出是什麼原因造成這一點。任何指針都會很棒。

+0

添加你的代碼片段是一個很好的開始。 –

回答

0

的ABG豐富的引腳擴展添加<head>這是不確定的行爲無效的標記內<div>標籤。

<head> 
... 
<div class="abg_rp_movie_div"> 
<!-- ABG Rich Pins by Antonio Borrero Granell 1.1 --> 
<meta property="og:site_name" content="Scaling Back"> 
<div itemscope="" itemtype="http://schema.org/Movie"> 
<meta itemprop="url" content="http://www.scalingbackblog.com/savory-bites/butternut-squash-noodles-with-creamy-miso-tahini-sauce/"> 
<h1 itemprop="name"></h1> 
<span itemprop="description"></span> 
<div itemprop="aggregateRating" itemscope="" itemtype="http://schema.org/AggregateRating"> 
<span itemprop="ratingValue"></span> 
<span itemprop="bestRating"></span> 
</div> 
<meta itemprop="datePublished" content=""> 
<meta itemprop="contentRating" content="G"> 
</div> 
<!-- /ABG Rich Pins --> 
</div> 
... 
</head> 

這是間距的來源。

+0

謝謝@pjumble就是這樣!我只是添加了一個margin-top:-10px,並且它處理了它。 – moorewebx

0

我可以告訴你如何解決這個問題,但可能有人在那裏有時間看你的樣式表..但這裏是你可以做的。某處在樣式表補充一點:

CSS: 

body { 
    position: relative; 
    top: -10px; 
} 
相關問題