gpt4 book ai didi

CSS 不适用于按钮外观 - Internet Explorer

转载 作者:搜寻专家 更新时间:2023-10-31 22:48:43 25 4
gpt4 key购买 nike

对于当前场景,我有以下 HTML 和 CSS:

enter image description here

如您所见,搜索文本框和过滤器下拉列表完美地显示在同一行中。但是按钮向下显示。

这是所有 3 个控件的 HTML 代码:

<table>
<tbody>
<tr>
<td>
<div class="search_result_div">
<div>
<input type="text" style="width:200px;" id='searchButton' value="some text"><span>&nbsp;&nbsp;in&nbsp;&nbsp;</span>
<select id="filterDropdown">
<option value="all" selected="selected">All Areas</option>
<option value="docs">Documents</option>
</select>
&nbsp;&nbsp;
<a onclick="return callSearch();" class="btn" id="searchButton" href="../sys/SearchResults.aspx?q="><span>Search</span></a>
</div>
</div>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</tbody>
</table>

这是所有控件的 CSS:

.search_result_div a.btn 
{
background: url("/images/bg_btn_left.gif") no-repeat scroll left center transparent;
display: inline !important;
float: none;
font-size: 11px !important;
line-height: 21px !important;
margin: 0 !important;
outline: medium none;
padding: 3px 0 3px 2px !important;
text-indent: inherit !important;
}

.search_result_div a.btn span
{
background: url("/images/bg_btn.gif") no-repeat scroll right center transparent;
font-weight: bold !important;
margin: 0 !important;
padding: 4px 8px 4px 6px !important;
}

注意:按钮分为两个图像。

bg_btn_left.gif : enter image description here

bg_btn: enter image description here

请指出我哪里出错了?

谢谢

最佳答案

试试这个:

<style type="text/css">
.search_result_div a.btn
{
background: url("bg_btn_left.gif") no-repeat scroll left top transparent;
display: inline !important;
float: none;
font-size: 11px !important;
line-height: 21px !important;
margin: 0 !important;
outline: medium none;
padding: 4px 0 3px 2px !important;
text-indent: inherit !important;
}

.search_result_div a.btn span
{
background: url("bg_btn.gif") no-repeat scroll right top transparent;
vertical-align:top;
font-weight: bold !important;
margin: 0 !important;
padding: 4px 8px 4px 6px !important;
}
</style>

关于CSS 不适用于按钮外观 - Internet Explorer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11465357/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com