这里有一个jQuery插件来验证CSS?使用jquery格式化和验证CSS
我的意思是,我喜欢让用户输入自己的CSS在文本框中,并验证是否是有效的CSS与jQuery?
例如:
@font-face {
font-family: 'NationalRegular';
src: url('http://localced.com/national-regular-webfont.eot');
src: local('National'), local('NationalRegular'), url('http://localced.com/national-regular-webfont.woff') format('woff'), url('http://localced.com/national-regular-webfont.ttf') format('truetype'), url('http://localced.com/national-regular-webfont.svg#webfontHGfqMJAZ') format('svg');
font-weight: normal;
font-style: normal;
***notgoodCSS***:this is not good;
}
然后你就可以用自己的SOAP API:http://jigsaw.w3.org/css-validator/api.html – 2010-12-13 22:15:58