0
我已經使用CSS創建的動畫,是該關鍵幀動畫不工作的Safari瀏覽器
.div
{
\t position:relative;
\t width:250px;
\t height:150px;
\t background-color:gray;
}
.div:before {
content: "";
position: absolute;
top: 0px;
left: 0px;
width: 100px;
height: 100px;
animation-name: drawline;
animation-duration: 2s;
-webkit-animation-name: drawline;
-webkit-animation-duration: 2s;
border: 1px solid #fff;
}
@-webkit-keyframes drawline
{
\t 0%
\t {
\t \t width:0px;
\t }
\t 100%
\t {
\t \t width:100px;
\t }
}
@keyframes drawline
{
\t 0%
\t {
\t \t width:0px;
\t }
\t 100%
\t {
\t \t width:100px;
\t }
}
<div class="div"></div>
這個動畫正在Chrome,但不工作的Safari瀏覽器的代碼,因爲我已經給了動畫到:之前。我該怎麼辦?請幫忙。
我有Safari瀏覽器版本10.1.1,它似乎工作得很好。你使用什麼版本? –
我使用的5.1.7版本。 –
Safari瀏覽器5.1.7是一個10歲的版本的Windows和一長串時間前已經停產,所以剛落,立即和使用別的 – LGSon