Home >Development Tools >VSCode >What to do if vscode keyframes error message

What to do if vscode keyframes error message

藏色散人
藏色散人Original
2020-04-08 09:20:483103browse

What to do if vscode keyframes error message

vscode keyframes报错怎么办?

@keyframes shake-data-v-e732b878 {
            0% {
                -webkit-transform-origin: bottom;
                transform-origin: bottom;
                -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
            }
 
            25% {
                -webkit-transform-origin: bottom;
                transform-origin: bottom;
                -webkit-transform: rotate(24deg);
                transform: rotate(24deg);
            }
 
            50% {
                -webkit-transform-origin: bottom;
                transform-origin: bottom;
                -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
            }
 
            75% {
                -webkit-transform-origin: bottom;
                transform-origin: bottom;
                -webkit-transform: rotate(-24deg);
                transform: rotate(-24deg);
            }
 
            to {
                -webkit-transform-origin: bottom;
                transform-origin: bottom;
                -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
            }
        }

然后报错

 

严重性    代码    说明    项目    文件    行    禁止显示状态
错误    CS0103    当前上下文中不存在名称“keyframes”    H5.Web.Site    D:\mywork_2.0\shesuites2\h5-suandao.site\4.Site\H5.Web.Site\Views\SuanDaoHome\GuanGongQian.cshtml    255    活动

 

相关教程推荐:vscode教程

 

解决方案:

只需要多加一个@符号转义就ok。亲测可用。

例如 @@keyframes blink

The above is the detailed content of What to do if vscode keyframes error message. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn