#message-container {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#message-container .message {
    background: #fff;
    margin: 10px 0;
    padding: 0 10px;
    height: 40px;
    box-shadow: 0 0 10px 0 #eee;
    font-size: 14px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    transition: height 0.2s ease-in-out, margin 0.2s ease-in-out;
}

#message-container .message .text {
    color: #333;
    padding: 0 20px 0 5px;
}

#message-container .message .close {
    cursor: pointer;
    color: #999;
}
/* 给每个图标都加上不同的颜色，用来区分不同类型的消息 */
#message-container .message .icon-info {
     background: url('/syx/resource/iconimg/info.png') no-repeat ;
  	  width:16px;
     height:16px;
}
#message-container .message .icon-error {
    background: url('/syx/resource/iconimg/error.png') no-repeat ;
  		width:16px;
     height:16px;
}
#message-container .message .icon-success {
       background: url('/syx/resource/iconimg/success.png')  no-repeat;
  width:16px;
     height:16px;
}
#message-container .message .icon-warning {
     background: url('/syx/resource/iconimg/warning.png')  no-repeat;
  width:16px;
     height:16px;
}
@keyframes message-move-in {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 1;
        /* 平移到自身位置 */
        transform: translateY(0);
    }
}
#message-container .message.move-in {
    animation: message-move-in 0.3s ease-in-out;
}
@keyframes message-move-out {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}
#message-container .message.move-out {
    animation: message-move-out 0.3s ease-in-out;
    animation-fill-mode: forwards;
}