搜索框/转换在Firefox中不起作用

时间:2013-06-26 04:18:27

标签: css firefox

我在IE上禁用了搜索框,因为IE一直将其置于导航的中心位置。 它适用于Chrome,我不确定歌剧(我不确定我是否关心)但它在Firefox中不起作用。缓出时间适用于Firefox,但没有其他任何方法可行。

我已尝试过其他方法解决这个问题,但每次尝试不同的东西时,搜索框的定位都会被抛弃。

如果你在Firefox中查看它,它看起来很好 - 直到你点击它进行搜索。 http://kissoff.weebly.com/如果您查看并在Chrome中点击它,您可以看到搜索框应该执行的操作。

我确定定位已关闭,我不确定(我是css的新手)。任何帮助表示赞赏。     #search {}

#search input[type="text"] {
background: url(search-white.png) no-repeat 10px 6px #fcfcfc;
border: 1px solid #d1d1d1;
position: fixed;
margin-left: 350px;
margin-right: 0px;
margin-top: 0px;
color: #bebebe;
width: 150px;
padding: 6px 15px 6px 35px;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
-webkit-transition: all 0.7s ease 0s;
-moz-transition: all 0.7s ease 0s;
-o-transition: all 0.7s ease 0s;
transition: all 0.7s ease 0s;
float: right;
}
#search input[type="text"]:focus {
width: 200px;
}

1 个答案:

答案 0 :(得分:0)

你忘了编辑margin-left。 http://jsfiddle.net/xeemez/nZBNm/

#search{
background: url(search-white.png) no-repeat 10px 6px #fcfcfc;
border: 1px solid #d1d1d1;
position: fixed;
margin-left: 350px;
margin-right: 0px;
margin-top: 0px;
color: #bebebe;
width: 15px;
padding: 6px 15px 6px 35px;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
-webkit-transition: all 0.7s ease 0s;
-moz-transition: all 0.7s ease 0s;
-o-transition: all 0.7s ease 0s;
transition: all 0.7s ease 0s;
float: right;

}
#search:focus {
width: 200px;
margin-left: 200px;
}

http://jsfiddle.net/xeemez/nZBNm/

相关问题