我在为IE,Chrome和Opera渲染我的网站时遇到了问题。在Firefox中的定位效果很好:网站元素的位置
而在其他浏览器,它看起来像废话:
我尝试了好几种定位和填充选项,但没有运气。问题出现了,我用jQuery替代替换下拉菜单以图形化增强它。原始下拉列表仍然存在,但使用css选项“display:none”。我会很感激提示!
这里是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;
}
th ËjQuery的下拉更换
#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;
}
你能不能给我们一个[小提琴](http://jsfiddle.net/)演示? – 2013-03-08 14:25:50
为小提琴+1,我会补充说,你应该开发与Chrome和测试其他浏览器:)。 – soyuka 2013-03-08 14:27:10