本文介绍了在vnext中编辑它时,CSS中出现意外的标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试通过Vnext或Webmatrix v2 beta编写一些css时,我得到的错误是:unbpected token:
有时我改变了某些内容,并且出现了意外错误;

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 ;

当我尝试这种方式时

body
{
    background-color :Aqua;
}

我想知道所有的浏览器(moz,chrome) 未捕获的SyntaxError:意外的令牌:

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

稍后我将它从vs2010中保存,但仍然有错误。有人可以告诉我我在哪里做错了。

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

推荐答案

这个错误表明你试图加载你的CSS,就好像它是Javascript。

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

这篇关于在vnext中编辑它时,CSS中出现意外的标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 02:03
查看更多