2015-12-21 102 views
1

,當我嘗試驗證下面的代碼:W3 CSS驗證錯誤解析錯誤

.cd-stretchy-nav ul a { (line 186) 
    position: relative; 
    display: block; 
    height: 50px; 
    line-height: 50px; 
    padding: 0 calc(1em + 60px) 0 1em; 
    color: white; 
    opacity: 1; 
    font-size: 1rem; 
    -webkit-transition: color 0.2s; 
    -moz-transition: color 0.2s; 
    transition: color 0.2s; 
} 

    .cd-stretchy-nav ul a::after { (line 200) 
    content: ''; 
    position: absolute; 
    height: 16px; 
    width: 16px; 
    right: 22px; 
    top: 50%; 
    -webkit-transform: translateY(-50%) scale(0); 
    -moz-transform: translateY(-50%) scale(0); 
    -ms-transform: translateY(-50%) scale(0); 
    -o-transform: translateY(-50%) scale(0); 
    transform: translateY(-50%) scale(0); 
} 

我得到這些錯誤。

.cd-stretchy-nav ul a Parse Error calc(1em + 60px)0 1em;

解析錯誤[:white;不透明度:1; font-size:1rem; -webkit-transition:顏色0.2s; -moz-transition:顏色0.2s;過渡:顏色0.2s; } .cd-stretchy-nav ul a :: after]

究竟是什麼導致了這些錯誤?代碼在網站上正常工作。

回答