search

Home  >  Q&A  >  body text

web - css3 @keyframes用一次后面的任何样式就解析不了了.

css3 @keyframes用一次后面的任何样式就解析不了了.
后面的样式都解析不了, 于是我把它新建成另外一个文件...
还是解析不了@keyframe{}的"}"之后的内容.....
求大神解答...用的eclipse在写javaee项目

@CHARSET "UTF-8";

/* 弹出member信息框*/

.member_bg{
    position: relative;
    display: block;
    float: right;
    z-index: 1;
    background-image:url("../img/background_sodark.png");
    padding: 8pt;
    
    transform: scale(0);
    animation: hide_member 0.3s;
}
.member_bg_hover{
    position: relative;
    display: block;
    float: right;
    z-index: 1;
    background-image:url("../img/background_sodark.png");
    padding: 8pt;
    
    animation: show_member 0.3s;
}

@keyframes hide_member
{
0%   {
    transform: scale(1);
}
30%  {
    transform: scale(1.03);
}
100% {
    transform: scale(0);
}

@keyframes show_member
{
0%   {
    transform: scale(0.3);
}
70%  {
    transform: scale(1.03);
}
100% {
    transform: scale(1);
}

巴扎黑巴扎黑2782 days ago590

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-17 11:45:47

    Hey, both of you are missing the closing brace }

    @keyframes hide_member
    {
        0%   { transform: scale(1); }
        30%  { transform: scale(1.03);}
        100% { transform: scale(0); }
    }
    
    @keyframes show_member
    {
        0%   { transform: scale(0.3); }
        70%  { transform: scale(1.03); }
        100% { transform: scale(1); }
    }

    reply
    0
  • Cancelreply