如何在asp.net中添加背景图片 [英] How to add a background image in asp.net

查看:2036
本文介绍了如何在asp.net中添加背景图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net中添加背景图像

How to add a background image in asp.net

推荐答案

您可以将css应用于页面主体,以获取页面背景中的图像,如下所示:


身体
{
背景图片:<< url>> ;;;
}
you can apply css to your page body for an image in page background like below:


body
{
background-image:<<url>>;
}


遵循以下简单步骤:
1.右键单击解决方案,然后选择添加现有项.
2.浏览并添加图像.
3.现在,右键单击页面上的任何空间,然后选择属性.
4.转到背景,然后单击省略号[...]
4.浏览最近添加的图像,并提供

图像将被设置为页面背景!
Follow these simple steps:
1. Right click on the solution and select Add Existing Item.
2. Browse for an image and add it.
3. Now right click on any space on the page and select properties.
4. Go to Background and click the ellipses symbol [...]
4. Browse for the image you added recently and give

The image will be set as page background!



这篇关于如何在asp.net中添加背景图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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