在asp.net中设置Web表单的背景 [英] setting a background of web form in asp.net

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

问题描述

先生,我该如何在c#asp.net 2.0中设置Web表单的背景?

sir how can i set the background of my webform in c# asp.net 2.0

推荐答案

在您的CSS文件中,您需要此

in your css file you need this

div#PageWrapper
        {
            background-color: #000;
            background-image: url('../images/darker_wood_1600x1200.jpg');
            background-attachment: scroll;
            background-repeat: repeat-x;
       }


引用此链接可能对您有帮助:

http://forums.aspfree.com/asp-development-5/change-asp-web-form-b​​ackground-color-programmatically-130744.html [
Refer this link may help you:

http://forums.aspfree.com/asp-development-5/change-asp-web-form-background-color-programmatically-130744.html[^]


嗯"我无法正确获取Ur查询.
但是我从中得到的是U想要设计您的网络表单.如果是:

1-Visual Studio为设计您的页面提供了很大的帮助.您可以根据您的要求选择页面->转到其属性窗口->设置背景(用于图像)/BgColor属性. >
2-否则,在Visual Studio中,只需选择ur Page->使用VS工具栏上可用的背景色按钮即可.

3-否则,如果您精通CSS,请根据您的要求生成一个CSS类,并在表格的Class属性中选择该类.

希望对您有帮助.
Well I''m not Getting Ur Query Properly.
But what I got from this is that U want to Design ur web-form.If yes:

1-Visual Studio provides a Great help to design ur page.U can just select the page->Go to it''s Properties Window->Set Background(For Image)/BgColor properties according to ur requirement.

2-Otherwise in Visual Studio just select ur Page->Use the Background Color Button available on Toolbar of VS.

3-Otherwise if u r proficient in CSS, generate a CSS class according to ur Requirement & just Select this class in Class property of form.

Hope this would help u.


这篇关于在asp.net中设置Web表单的背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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