如何将图片适合div或表格(VS2010 – C#) [英] How can I Fit my picture in a div or table (VS2010 – C#)

查看:105
本文介绍了如何将图片适合div或表格(VS2010 – C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 下一行仅显示表中的图片的一部分.没有全部内容.
如何在表格或div中看到完整的图片?
在Windows应用程序中,我们可以拉伸图片,但是在网络编程中,它不存在.
(VS2010 – C#)?

Hi The below line show only a part of picture in table . no all part of it.
How can I see full of picture in the table or div?
In windows application we can stretch pictures , but in web programming , it dos’nt exist.
(VS2010 – C#)?

<table border="0" style="background-image:url(my_Images.jpg);   background-repeat:no-repeat;"  >



非常感谢



Thanks very much

推荐答案

在Web编程中,通常更适合使容器区域适合图像的大小(这在WPF中也很常见) ),通常情况下无需任何努力.请考虑一下.

—SA
In Web programming, it''s usually more adequate to make a container area fitting the size of the image (and this is also usual with WPF), which normally happens without any effort. Please think about it.

—SA


这篇关于如何将图片适合div或表格(VS2010 – C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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