问题
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