I'm using Visual Studio 2008 making an ASP.NET page. In this page I'm using a stylesheet at styles/basic.css
When I hit F5 to load the page it loads perfectly fine. Inside the style sheet I have defined a .basic style class along with other classes. But when I use body class="basic", Visual Studio tells me "The class or CssClass value is not defined."
I've tried to name it body.basic, I've tried renaming basic to a variety of other names, with and without body, but visual studio continues to lie to me and I can't figure 开发者_如何学Goout why!
Anyone else come across this/know how to fix it? I noticed one thing - I can use another class name I have: div.opaque, and VS doesn't tell me it's undefined even though it's clearly not a body class? Also I tried renaming it div.basic but that didn't work either.
Well, my current workaround is to just remove the class parameter from the body and just declare body{} in the CSS. Pesky, but works.
精彩评论