Unexpected token in CSS when editing it in vnext

送分小仙女□ 提交于 2019-12-09 14:17:32

问题


When I try to write some css through Vnext or Webmatrix v2 beta I got error that unxpected token : sometime I change something and got error that unexpected error ;

When I try this

body
{
    background-color :Aqua;
}

I wonder all browser (moz,chrome) give me error that "Uncaught SyntaxError: Unexpected token :"

Later I save it from vs2010 but i still have error. Can someone tell me where I am doing wrong.


回答1:


The error suggests that you're trying to load your CSS as if it were Javascript.




回答2:


Maybe Vnext is expecting the : to be beside the background-color?

Try this

background-color: Aqua



来源:https://stackoverflow.com/questions/7431445/unexpected-token-in-css-when-editing-it-in-vnext

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!