如何把两个gif放到一个按钮中? 本人做一个表单提交程序,要做一个按钮,正常时显示first.gif, 鼠标移到按钮和按下时显示second.gif. 但是imageButton 控件好像只能放一个图片.本人无计可施,请大家帮帮忙! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用photoshop合成吧 呵呵 错了,用onmouseover="this.src='2.gif'" 用javascript实现,onmouseover和onmousedown事件换图片,或者用DW做容易一些。 重新指定:ImageButton1.ImageUrl 不就可以了。 ImageButton1.Attributes.Add("onmouseover","this.src='2.gif'") <style>.button { font-size: 12px; width: 80px; height: 20px; background-image: url(../images/skin/but_bg.gif); border: none; padding-top: 1px;}.button1 { font-size: 12px; width: 60px; height: 20px; background-image: url(../images/skin/but_bg1.gif); border: none; padding-top: 1px;}.button-o { font-size: 12px; width: 80px; height: 20px; background-image: url(../images/skin/but_bg_o.gif); border: none; padding-top: 1px;}.button1-o { font-size: 12px; width: 60px; height: 20px; background-image: url(../images/skin/but_bg1_o.gif); border: none; padding-top: 1px;}</style><asp:button onmouseup="this.className='button'" onmousedown="this.className='button-o'" id="btnSave" accessKey="T" onmouseout="this.className='button'" CssClass="button" Text=" 保存(S) " Runat="server"></asp:button></P> 激动地谢谢诸位兄弟的帮忙,问题顺利解决另外我没有DW和PhotoShop, 不要讽刺人家嘛,毕竟俺是新人啊. 如何做多语言网站? Response.BinaryWrite() 输出图片 不显示 ,怎么回事? 把指定的xml/wml文件读到文本框中,然后手动编辑再保存! 风讯等cms的标签是怎么实现的? 怎么设置数据库连接时间 如何自动检测IE是否支持flash 求只有年月的时间代码或控件 子父表问题数据统记问题????? 那有开发ASP.NET软件下载,急急 用dataset 更新数据库 绝望一问:关于COM在.NET中的应用。 有关在asp.net中连接数据库的问题!
.button {
font-size: 12px;
width: 80px;
height: 20px;
background-image: url(../images/skin/but_bg.gif);
border: none;
padding-top: 1px;
}
.button1 {
font-size: 12px;
width: 60px;
height: 20px;
background-image: url(../images/skin/but_bg1.gif);
border: none;
padding-top: 1px;
}
.button-o {
font-size: 12px;
width: 80px;
height: 20px;
background-image: url(../images/skin/but_bg_o.gif);
border: none;
padding-top: 1px;
}
.button1-o {
font-size: 12px;
width: 60px;
height: 20px;
background-image: url(../images/skin/but_bg1_o.gif);
border: none;
padding-top: 1px;
}
</style>
<asp:button onmouseup="this.className='button'" onmousedown="this.className='button-o'" id="btnSave" accessKey="T" onmouseout="this.className='button'" CssClass="button" Text=" 保存(S) " Runat="server"></asp:button></P>
另外我没有DW和PhotoShop, 不要讽刺人家嘛,毕竟俺是新人啊.