阻止@在Visual Studio 2010中的CSS3中无法识别 [英] Block @ not recognized in CSS3 in Visual Studio 2010

查看:168
本文介绍了阻止@在Visual Studio 2010中的CSS3中无法识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用vs2010中的css3。尝试一些动画。但intellisense给出错误无法识别的@块类型和关键帧不是已知的css属性名称。以下是我试过的一些。





i am working on css3 in vs2010. Trying some animation. but intellisense is giving error "Unrecognized @ block type" and " keyframe is not a known css property name". Below is some i have tried.


@-webkit-keyframes animt1 {
0%   {background-color:red; left:0px; top:0px;}
25%  {background-color:yellow; left:200px; top:0px;}
50%  {background-color:blue; left:200px; top:200px;}
75%  {background-color:green; left:0px; top:200px;}
100% {background-color:red; left:0px; top:0px;}
@keyframes animt1 {
from {background-color: red;}
to {background-color: yellow;}





请帮助我。在此先感谢。



Kindly help me out. Thanks in advance.

推荐答案

不确定这个问题,但肯定你错过了两个结束的大括号。

Not sure about the issue but definitely you are missing two closing curly barces.
@-webkit-keyframes animt1 {
  0%   {background-color:red; left:0px; top:0px;}
  25%  {background-color:yellow; left:200px; top:0px;}
  50%  {background-color:blue; left:200px; top:200px;}
  75%  {background-color:green; left:0px; top:200px;}
  100% {background-color:red; left:0px; top:0px;}
}
@keyframes animt1 {
  from {background-color: red;}
  to {background-color: yellow;}
}



希望这会为您正在寻找的解决方案增加一些内容:)


Hope this adds something to the solution you are looking for :)


这篇关于阻止@在Visual Studio 2010中的CSS3中无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆