visual studio不能使用html的css样式表,为什么Visual Studio不能解析我的CSS类名?

Jeff King查看这篇文章是关于让Visual Studio能够通过intellisense找到javascript文件:JScript IntelliSense FAQ。

特别是阅读点#4,第三个项目符号:

Site-Relative Paths - These are paths

of the form "/folder/file", and is

calculated from the base of your site

(http://site/application/folder/file).

This approach is supported by ASP.NET

Web Forms and ASP.NET MVC. However,

it is not supported by Visual Studio.

The reason is because Visual Studio

does not always know the final

deployed location of your site and

thus the path resolution cannot be

guaranteed. Given that quite we've

seen few folks are using site-relative

paths, we could consider making an

assumption just resolving this type of

path to the root of the project.

Given the risk that you may think your

site is working when it's really not,

I wanted to see how many people were

supportive of this.

注意“Visual Studio不支持”[站点相对路径]“。我总是使用网站相对路径为我的JavaScript和CSS文件,所以解决方案让Visual Studio找到您的JavaScript文件是相同的解决方案,让Visual Studio找到您的CSS文件:

现在Visual Studio可以找到CSS文件并验证我的CSS类名是否存在(并且Design View看起来好得多)。

在我的博客上发布:

Why does Visual Studio not resolve my CSS class names?

-Jeff

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值