我的网站在底部显示了一个水平滚动条 - 这就像我的主题右边有很多额外的空间 - 但这里没有任何东西。水平滚动条 - WP论文 - 为什么?
有人可以告诉我如何解决这个问题吗?
我使用Wordpress 3.0,论文主题与全宽框架。
谢谢!
我的网站在底部显示了一个水平滚动条 - 这就像我的主题右边有很多额外的空间 - 但这里没有任何东西。水平滚动条 - WP论文 - 为什么?
有人可以告诉我如何解决这个问题吗?
我使用Wordpress 3.0,论文主题与全宽框架。
谢谢!
首先,你有这样的元素:
<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;
}
你应该尽量做到:显示:无;
我不知道你会得到什么浏览器的这种行为,但是在CSS中,你可以使用overflow-x:hidden
隐藏水平滚动条
html, body {overflow-x:hidden;}
我在Mac上用Firefox 3.6看到它 – 2010-12-04 15:29:05
它发生在IE,FF,Safari,Chrome中。 – pepe 2010-12-04 15:43:06
太棒了!这解决了我的溢出问题,这是在ipad – 2012-07-13 19:19:00
如果你可以简单地使用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;
让我们知道你是如何得到。
在什么浏览器中你会得到这种行为? – Sotiris 2010-12-04 15:24:38