简体   繁体   English

VS2010,CSS intellisense不显示ID或类名

[英]VS2010, CSS intellisense not showing id- or class names

Should intellisense trigger on typing a # or . 键入#或时应该触发智能。 in a css file (to list the class/id names)? 在一个CSS文件(列出类/ ID名称)? I get intellisense inside the curly brackets, but not for the classes and id's. 我在大括号内得到了Intellisense,但没有类和ID的。 Is this possible to achieve? 这有可能实现吗?

It might be possible, but the VS 2010 CSS editor does not do it. 可能是可行的,但是VS 2010 CSS编辑器无法做到这一点。

In fact, what you find is the opposite for classes: when typing class=" in an html tag, you will get a list of the classes defined in your CSS 实际上,发现的与类相反:在html标记中输入class =“时,您将获得CSS中定义的类的列表。

1-您的控制器必须是asp.net控件和runat =“ server”(而不是html控件)2-它仅应用于分类(而不是元素ID:D)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM