将背景图像设置为asp.net形式 [英] setting background image to asp.net form

查看:86
本文介绍了将背景图像设置为asp.net形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在asp.net的设计部分中如何拉伸背景图像?
我用下面的线来设置背景图像.图像正在显示,但没有拉伸.

In the designing part of asp.net how to stretch the background image?
I used the below line to set the background image. The image is displaying but it not stretched.

<body background="images.jpg"/> 


如何拉伸背景图像?


how to stretch the background image?

推荐答案



像这样尝试,

Hi,

Try like this,

<body style="background-image: url(images.jpg); width:100%; height:100%;">
Body of page goes here
</body> 


浏览以下链接

此处 [此处 [
Go through the below links

Here[^]

Here[^]

Thanks
--RA


应用css类并使用属性backgrund-image-url:图像的URL"背景重复:根据图像重复x或y.
apply css class and use property backgrund-image-url:''url for image'' background repeat:repeat x or y as per image.


这篇关于将背景图像设置为asp.net形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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