Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
293 views
in Technique[技术] by (71.8m points)

visual studio 2010 - Is it possible to change CSS Validation scheme in VS2010

I'm editing a simple CSS file in VS2010 and the editor seems to have a rather limited understanding of CSS, for example:

#my-rule {
     position:relative;
}

generates a warning: Validation(CSS 1.0): 'position' is not a known CSS property name

I'm guessing that there is an option some where to change the CSS validation to CSS 2.1 or some thing close, but can't for the life of me find it.

question from:https://stackoverflow.com/questions/3931801/is-it-possible-to-change-css-validation-scheme-in-vs2010

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You have a dropdown in the top menu where you can switch the css validation. It's called Cascading stylesheet version for validation. If you can't see it right click on the menu and check Style sheet so it will show.

screenshot


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...