我可以将图像添加到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=""/>
我现在正在尝试,并且图像都被压缩了。
I am trying it now, and the image is all scrunched up. Maybe it's a CSS issue?
推荐答案
为什么不使用 ImageButton control?
Why not use an ImageButton control?
这篇关于我可以将图像添加到ASP.NET按钮吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文