自动调整页面上的图像 [英] auto-adjust the image on page

查看:104
本文介绍了自动调整页面上的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在面板上放置了面板,然后放置了背景图像.现在,当我使用AUTOSIZE调整面板大小时,我应该如何自动调整背景图像的大小?
请帮忙!!

I placed PANEL and then a background image on this panel. now how should i autosize this background image as i used AUTOSIZE to adjust the panel size ??

please help !!

推荐答案

您好,

您无法使用CSS/HTML调整背景图片的大小.您将需要使用大小调整为面板大小的Image标签(可以使用CSS来完成),并使用一些CSS将图像放置在面板后面(在图像上使用"position:absolute"样式!). >
请仅搜索Google上的操作方法-这非常简单,并且有很多示例.尝试在图像上方的div"中进行搜索,然后运用主要思想在图像上方获得一个面板(此处的图像就是您的背景图像).

希望这会有所帮助,
Ed
Hi there,

You cannot resize a background image using CSS/HTML. You will need to use an Image tag that resizes to the size of your panel (can be done with CSS) and some CSS to place the image behind the panel (use "position:absolute" styling on the image!).

Please just search Google on how to do this - it is very simple and there are many examples. Try searching "div over top of image" then apply the principal ideas to get a panel over the top of an image (where the image is then your background image).

Hope this helps,
Ed


这篇关于自动调整页面上的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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