我在为 IE、Chrome 和 Opera 呈现我的网站时遇到问题。在 Firefox 中,定位效果很好:
而在其他浏览器中它看起来像废话:
我尝试了几种定位和填充选项,但没有运气。当我用 jQuery 替换下拉菜单以图形方式增强它时,问题就出现了。原来的下拉菜单仍然存在,但带有 css 选项“显示:无”。我会很感激你的提示!
这是CSS:
这是蓝色的大盒子
.searchHomeForm a, .searchHomeForm a:hover {
color:#000000;
}
围绕三个元素的隐形框
div.searchHomeForm , .searchform {
height: 37px;
margin-left: auto;
margin-right: auto;
}
白色搜索栏
.search_bar {
position: inherit;
height: 25px;
letter-spacing: 0.02em;
line-height: 25px;
padding: 9px 0 0px 9px;
width: 390px;
border: 1px solid #95B6D6;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.11) inset;
border-radius: 0.25em 0 0 0.25em;
}
jQuery Dropdown 替换
#searchformReplacement {
background: #EBEBEB;
padding: 0px 1px 5px 0;
margin-bottom: 3px;
border-top: 1px solid #95B6D6;
border-bottom: 1px solid #95B6D6;
width: 109px;
position: inherit;
}
查找按钮
.find_button {
background: url("../images/lupevufindsearchsubmit1.png") no-repeat scroll #bBbBbB;
-moz-border-radius: 0.25em;
border-radius: 0 0.25em 0.25em 0;
position: inherit;
height: 36px;
line-height: 36px;
margin: 0px 0 3px -1px;
padding: 4px 10px 4px 10px;
width: 60px;
border-top: 1px solid #95B6D6;
border-right: 1px solid #95B6D6;
border-bottom: 1px solid #95B6D6;
border-left: none;
box-shadow: 2px 2px 5px rgba(76, 133, 187, 0.50) inset;
transition: all 0.2s ease-in-out 0s;
}