如何在Visual Studio ASP.Net中更改原色 [英] How to change forecolor in Visual Studio ASP.Net

查看:200
本文介绍了如何在Visual Studio ASP.Net中更改原色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好,
我的问题是在asp.net应用程序中,默认情况下,我的文本颜色是白色.我总是必须选择文本,然后更改其颜色. Microsoft Visual Studio 2010中是否可以将文本颜色更改为黑色.

Good Morning,
My problem is my text colour is white by default in asp.net application. I always have to select the text and then I change its colour. Is there any option in Microsoft Visual Studio 2010 for changing the text colour to black.

推荐答案

鉴于您位于页面的设计视图"中.在页面上右键单击并选择属性.在属性资源管理器中,查找"Body"部分->. 文本".在那里,您可以更改前景文本的颜色.
Given that you are in Design View of your page. Rightcklick on the page and select properties. In the properties explorer look for section "Body" -> "Text". There you can change the color of your foreground text.


出现这样的问题很奇怪,但是我们可以通过指定Theme或创建应用程序级CSS来为应用程序进行默认设置.然后,我们可以将默认属性分配给Body,然后在所有页面或母版页中添加该CSS的引用.

希望这会有所帮助.
It is strange to have such a problem but we can make default settings for our application by specifying Theme or by creating a application level CSS; we can then assign default properties to Body and then add reference of that CSS either in all pages or in Master Pages.

Hope this will help.


在需要的所有页面上都这样编写样式


< body style ="color:Black;">

..........

</body>
write the style like this for all the pages whereever you need


<body style="color:Black;">

..........

</body>


这篇关于如何在Visual Studio ASP.Net中更改原色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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