我想通过CSS轮换我的加载图标.
我有一个图标和以下代码:
<style>
#test {
width: 32px;
height: 32px;
background: url('refresh.png');
}
.rotating {
-webkit-transform: rotate(360deg);
-webkit-transition-duration: 1s;
-webkit-transition-delay: now;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
}
</style>
<div id='test' class='rotating'></div>
Run Code Online (Sandbox Code Playgroud)
但它不起作用.如何使用CSS旋转图标?
我有大文件(几GB)文本.
例如,它有下一个文本:
Hello, World!
Run Code Online (Sandbox Code Playgroud)
我需要在5个位置插入"有趣"字样,并抵消剩下的文字:
Hello, funny World!
Run Code Online (Sandbox Code Playgroud)
我如何不读取所有文件以抵消休息?或者我如何优化此操作?
谢谢.