将CSS样式应用于asp.net应用程序 [英] Apply CSS style to asp.net application

查看:100
本文介绍了将CSS样式应用于asp.net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我具有设计的CSS样式,但是我不知道如何将其应用到我的asp.net应用程序中.

如何将样式应用于我的网站?

I have a designed css style but I don''t know how to aply it to my asp.net application.

How can I apply the style to my website?

推荐答案

好吧,看来您是用相反的方式做的:人们不为样式表提出申请,为应用程序制作样式表.如果您为皮肤包付费,而没有向设计师提供课程,那您可能会浪费您的钱.实际上,您可以使您的应用程序使用不是为您设计的样式表,但这绝非易事.您至少需要一个使用它构建的示例页面,而不是使用IE Developer工具(例如)来发现如何构建页面以及如何应用类.然后,您必须重新设计应用程序,以使用与购买的外观相同的布局和相同的类名.您将需要使用 CssClass [ ^ ]属性以指定类名称.另请参阅本教程: http ://www.asp.net/web-forms/videos/building-20-applications/lesson-6-working-with-stylesheets-and-master-pages [
Well, looks like you have done it in the opposite way: people don''t make applications for a stylesheet, one makes stylesheet for an application. If you payed for a skin package, without supplying your classes to the designer, you probably wasted your money. Actually you can make your application use a stylesheet not designed for you, but it wont be easy. You need at least a sample page that is built with it, than use IE Developer tools for example to discover how the page is built and how the classes are applied. Than, you have to redesign your application to use the same layout, and same class names as the skin you have bought. You will need to use the CssClass[^] property to specify the class names. View also this tutorial: http://www.asp.net/web-forms/videos/building-20-applications/lesson-6-working-with-stylesheets-and-master-pages[^]


非常感谢Wes Aday.他的链接非常有帮助.

http://msdn.microsoft.com/en-us/library/tbze79kd (v = VS.80).aspx [
Thanks a lot to Wes Aday. His link is so helpful.

http://msdn.microsoft.com/en-us/library/tbze79kd(v=VS.80).aspx[^]


这篇关于将CSS样式应用于asp.net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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