如何在网格视图的图像域中调整图像大小 [英] how to resize the image in the imagefield of a grid view

查看:63
本文介绍了如何在网格视图的图像域中调整图像大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hai

i我试图通过使用图像字段和图像网址在网格视图中放置图像,但问题是图像图像加载的尺寸非常大而且没有由于不同尺寸的均匀性我使用图像高度和图像宽度来设置尺寸但不起作用

hai
i am trying to place an image in the grid view by using "image field" & "image url" but the problem is the images images are loading with very large size and there is no uniformity due to differnet sizes i am using "image-height" and "image-width" for setting the size but its not working

推荐答案

尝试ControlStyle-Width和Gridview中ImageControl的ControlStyle-Height。



如果图像太大,则可能需要调整缩略图大小。



< a href =http://www.codedigest.com/Articles/ASPNET/102_GridView_with_Thumbnail_Images_%E2%80%93_Part_1.aspx>带缩略图的GridView [ ^ ]
Try the ControlStyle-Width and ControlStyle-Height for the ImageControl in the Gridview.

If the Image is too large , then may be you need to resize as Thumbnail .

GridView with Thumbnail image[^]


这篇关于如何在网格视图的图像域中调整图像大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆