关于Site.css的澄清 [英] Clarification about Site.css

查看:68
本文介绍了关于Site.css的澄清的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Iam使用VS2010 ..我想了解site.css ...当我创建ASP.Net Web应用程序时,我可以找到Styles文件夹,在Site.css文件中...我找到了代码.. 。

同样我创建一个空Web应用程序并添加了样式表,但我不知道..如何从site.master和其他页面获取编码..



为什么它对项目有用?



感谢指导..

Hi, Iam using VS2010..I wish to learn about site.css...When I create ASP.Net Web application I can find Styles folder, inside Site.css file...And I found the codes...
Similarly I create a Empty web application & added the style sheet, but I don't know..how to get the codings from site.master & other pages..

For which purpose it can be useful to the project?

Thanks for the guidances..

推荐答案

你可以使用css链接到Asp.Net应用程序页面的头标签,如

如果你的css文件名是Style.css,文件夹路径是css / Style.css然后你的链接将是。



You can use css by link it into head tag of Asp.Net application page like
If your css file name is Style.css and folder path is css/Style.css then your link will be.

<head runat="server">
    <title></title>

    <link href="css/LayOut.css" rel="stylesheet" type="text/css" />


<body>...
</body>





http://matthewjamestaylor.com/blog/添加-css-to-html-with-link-embed-inline-and-import [ ^ ]



http://stackoverflow.com/questions/10781685/integration-of-css-javascript-and-html-howto [ ^ ]



http: //www.w3.org/TR/html401/present/styles.html [ ^ ]



http://www.w3.org/Style/Examples/011/firstcss.en.html [ ^ ]



http://matthewjamestaylor.com/blog/adding-css-to-html-with-link-embed-inline-and-import[^]

http://stackoverflow.com/questions/10781685/integration-of-css-javascript-and-html-howto[^]

http://www.w3.org/TR/html401/present/styles.html[^]

http://www.w3.org/Style/Examples/011/firstcss.en.html[^]


这篇关于关于Site.css的澄清的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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