图像在VS模板Web窗体上显得太大 [英] Images appear too large on VS Template Web Forms
本文介绍了图像在VS模板Web窗体上显得太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从Visual Studio模板-Web窗体应用程序中打开了一个新项目.
如果我将使用母版页图像的ImageButton放在现有的Web窗体中太大,并且如果我将ImageButton放在没有母版页图像的Web窗体上是正常的话.
其他包含图像的控件也是如此.
感谢您提供任何信息...
I opened new project from Visual Studio template - Web Forms application.
If I put ImageButton in existing Web Form using Master Page image appears too large and if I put ImageButton on Web Form without Master Page image is normal.
The same thing goes with other controls that include images.
Any information is appreciated...
推荐答案
如果您希望ImageButton具有特定的尺寸,则将css(style{ width: 50px; height: 50px; }
)设置为您想要的尺寸想要显示图像,它将自动调整大小以适合.
If you have a specific size that you want the ImageButton to be, set the css(style{ width: 50px; height: 50px; }
) with the size you want the image to display and it will automatically resize to fit.
这篇关于图像在VS模板Web窗体上显得太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文