0

我目前正在为朋友建立一个网站。

除了搜索框外一切正常。

如果您可以在http://wordpress.alternet.com.au/上看到,则窗口右上角有一个搜索框。搜索图标/图像位于需要的位置。

我使用的是 Chrome 版本 22.0.1229.94 m,当我将鼠标悬停在页面顶部的菜单项上时,搜索图标/图像会重新定位到搜索区域的左侧。

我不明白为什么会这样?

有任何想法吗?

4

3 回答 3

1

使用此更新更新您在 style.css 中的类。100% 它整天都在工作=D

 form#searchform input[type="text"] {
       height: 28px;
 }
 form#searchform {
       position: absolute;
       right: 0;
 }
于 2012-10-18T07:00:36.660 回答
0

............. 嗨,现在添加到box-sizing您的inputfocus像这样

添加 this css您的stylesheet

form#searchform input[type="text"], form#searchform input[type="text"]:focus{
box-sizing:border-box;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
}
于 2012-10-18T05:30:52.823 回答
0

不是真正的答案,但为了您的信息,这是它在 FireFox 中的外观:

看起来坏了

于 2012-10-18T08:30:55.947 回答