我需要在我的应用程序中展开和折叠按钮。
支持 IE 和 chrome,但 mozilla firefox 显示的图像两侧有小空白。
它设置不正确,我的代码如下。
<div class="searchdiv">
<b class="searchlabel">Advanced Search</b>
<input type="button" class="Expand_button" onclick="javascript: Expand();"/>
</div>
而CSS是,
.Expand_button {
margin-right: 5px;
cursor: pointer;
padding-bottom: 10px;
padding-top: 5px;
background: #fff url('../images/Expand.jpg') no-repeat center ;
height:1px;
}