我有一个带有图像代替箭头的下拉菜单。但我遇到了交叉浏览问题。在 chrome 中显示正常,但在 Mozilla 中,图像显示在后面。附上截图。
下拉 HTML
<td align="right">
<div class="blue" style="float: left;">
<div class="lightblueHeading" style="text-align: left;">No. Of Guests</div>
<div>
<div class="styled-select">
<asp:DropDownList ID="ddlNoOfGuest" runat="server" Style="width: 165px;"></asp:DropDownList>
</div>
</div>
</div>
</td>
班级
.styled-select
{
overflow: hidden; /*height: 24px; background: url(../images/dropdown_icon.png) no-repeat right;*/
background: url(../images/signup-dropdown_icon.png) no-repeat right;
background-color: white;
width: 100%;
}
.styled-select select
{
background: transparent; /*border: 1px solid #e8e9e9;*/
font-size: 12px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
visibility: hidden;
}