简体   繁体   English

搜索栏在Safari中无法使用?

[英]Search Bar won't work in Safari?

Ok, I'm not sure what to do. 好吧,我不确定该怎么办。 I have this search bar issue. 我有这个搜索栏问题。 My site is kissoff.weebly.com and the site works in IE, Chrome, Firefox, Opera, Seamonkey-- but it's not safari-compatible due to the search bar. 我的网站是kissoff.weebly.com,该网站可以在IE,Chrome,Firefox,Opera和Seamonkey中运行,但是由于搜索栏的原因,它与Safari兼容。

I need to push the search bar over to the right, just like how it should look in IE, Chrome, Firefox, Opera. 我需要将搜索栏推到右侧,就像它在IE,Chrome,Firefox,Opera中的外观一样。 Here's a screenshot of the site in Safari: http://files.andrewjudd.ca/kiss-off-search.png 这是Safari中该网站的屏幕截图: http : //files.andrewjudd.ca/kiss-off-search.png

Darn Safari. 该死的Safari。 Any ideas? 有任何想法吗? I'll share my search bar and navigation bar's css & html, but I'd really appreciate anyone checking the full css/html of my website. 我将共享搜索栏和导航栏的css和html,但是非常感谢任何人检查我网站的完整css / html。

  #navigation {
position: fixed;
margin-top: 0;
left: 0;
top: 0;
right: 0;
width: 100%;
color: #ffffff;
height: 35px;
text-align: center;
padding-top: 15px;
/* Adds shadow to the bottom of the bar */
-webkit-box-shadow: 0px 0px 8px 0px #000000;
-moz-box-shadow: 0px 0px 8px 0px #000000;
box-shadow: 0px 0px 8px 0px #000000;
/* Adds the transparent background */
background-color: rgba(125, 180, 18, 0.8);
color: rgba(1, 1, 1, 0.8);
z-index: 900;
    }


    #search {
display: inline;
    }
    #search input[type="text"] {
display: inline;
background: url(search-white.png) no-repeat 10px 6px #fcfcfc;
border: 1px solid #d1d1d1;
position: fixed;
margin-left: 450px;
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;
}

    #search input[type="text"]:focus {
width: 200px;
margin-right: 200px;
-o-margin-right: 10px;
display: inline;
}

/*SNIPPET OF HTML FOR NAVIGATION BAR & SEARCH HERE:*/
    <div id="navigation">
<div id="title">
KISS OFF
</div>
<form method="get" action="/search" id="search">
<input name="q" type="text" size="40" placeholder="Search..." />
</form>
<a href="#">Home</a>
<a href="#">Login</a>
<a href="#">Register</a>
<a href=#terms>Terms</a>
</div>

Thanks for looking, I appreciate it. 感谢您的关注,我非常感谢。 :) --Dijji :) --Dijji

You can try to change this: 您可以尝试更改此设置:

#search input[type="text"]{
...
margin-left: 450px;
margin-right: 0px;
....
}

to

#search input[type="text"]{
...
float: right;
margin-right: 0px;
...
}

Hope that this solution can help you. 希望此解决方案可以为您提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM