【发布时间】:2015-06-16 12:48:28
【问题描述】:
我需要在我的应用程序中展开和折叠按钮。
支持 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;
}
【问题讨论】:
标签: html css browser cross-browser