2010-12-04 63 views
1

我的網站在底部顯示了一個水平滾動條 - 這就像我的主題右邊有很多額外的空間 - 但這裏沒有任何東西。水平滾動條 - WP論文 - 爲什麼?

有人可以告訴我如何解決這個問題嗎?

我使用Wordpress 3.0,論文主題與全寬框架。

謝謝!

+0

在什麼瀏覽器中你會得到這種行爲? – Sotiris 2010-12-04 15:24:38

回答

1

首先,你有這樣的元素:

<button value="" name="sa" type="submit" class="googlesearch-btn"></button> 

這個CSS asigned它:

.googlesearch-btn { 
    background: none repeat scroll 0 0 transparent; 
    border: medium none; 
    cursor: pointer; 
    height: 37px; 
    left: 267px; 
    position: relative; 
    top: -35px; 
    width: 35px; 
} 

你應該儘量做到:顯示:無;

2

我不知道你會得到什麼瀏覽器的這種行爲,但是在CSS中,你可以使用overflow-x:hidden隱藏水平滾動條

html, body {overflow-x:hidden;} 
+0

我在Mac上用Firefox 3.6看到它 – 2010-12-04 15:29:05

+0

它發生在IE,FF,Safari,Chrome中。 – pepe 2010-12-04 15:43:06

+0

太棒了!這解決了我的溢出問題,這是在ipad – 2012-07-13 19:19:00

0

如果你可以簡單地使用WordPress添加額外的CSS樣式主題,添加在下面的樣式:

.full_width { 
    overflow:hidden; 
} 

如果你不能做到這一點,但可以編輯提供的主題原來的樣式,編輯「layout.css中」文件(從網址http://www.thedailytail.com/wp-content/themes/thesis_18/custom/layout.css?120410-40254當我參觀),大概在他第21行找到.full_wid的樣式並添加在線

overflow:hidden; 

讓我們知道你是如何得到。