我可以将图像添加到ASP.NET按钮? [英] Can I add an image to an ASP.NET button?
本文介绍了我可以将图像添加到ASP.NET按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要添加图像,而不是默认的按钮。
I want to add an image, instead of the default button.
我已经有一个CSS类的形象,将这项工作?
I already have a CSS class for the image, will this work?
<asp:Button ID="..." CssClass=""/>
我现在尝试它,并且图像都是揉了。也许这是一个CSS问题?
I am trying it now, and the image is all scrunched up. Maybe it's a CSS issue?
推荐答案
为什么不使用<一个href=\"http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.imagebutton.aspx\">ImageButton控制?
这篇关于我可以将图像添加到ASP.NET按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文