如何在div标签中放置图片 [英] How to fit image in div tag

查看:262
本文介绍了如何在div标签中放置图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在应用程序中使用母版页.
我已使用div标签在母版页中将图片设置为背景图片.
问题是某些屏幕上的图像尺寸较大.
因此看不到完整的图像.
如何增加div的高度,以便可以看到完整的图像

解决方案

将图像和div的高度和宽度设置为相同且固定;
像width ="somevalue"
height ="somevalue"


引用此链接

http://code.google.com/p/jquery-imagefit-plugin/ [ ^ ]


Hi
I am using a masterpage in my application.
I have set an image as background image in master page using div tag.
Problem is the image size is larger in some screens.
so complete image is not visible.
how can i increase height of the div so that i can see complete image

解决方案

set your height and width of your image and div to same and fixed;
like width="somevalue"
height="somevalue"


Refer this link

http://code.google.com/p/jquery-imagefit-plugin/[^]


这篇关于如何在div标签中放置图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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