0
为什么下面的动画在Chrome中运行但在Firefox中不能运行?为什么动画内容在Firefox中不起作用?
HTML:
<button>Loading</button>
CSS:
button {
width: 70px;
text-align: left;
}
button:after {
content: '';
animation: dots 1s infinite;
}
@keyframes dots {
0% { content: ''; }
25% { content: '.'; }
50% { content: '..'; }
75% { content: '...'; }
}
感谢您的链接。 [本文](https://css-tricks.com/animating-the-content-property/)对此有更多的阐述。 –
是的,不幸的是,Chrome开发策略已经或多或少地做了他们想做的事情,而不是遵循标准。 Chrome是新的IE。 – rockerest