用户:-木木夕-/common.css

来自Limbo Wiki
< 用户:-木木夕-
-木木夕-讨论 | 贡献2022年7月9日 (六) 11:17的版本 (创建页面,内容为“div { width:200px; height:200px; background:white; animation:myfirst 3s; -moz-animation:myfirst 3s; →‎Firefox:​ -webkit-animation:myfirst 3s; →‎Safari and Chrome:​ -o-animation:myfirst 3s; →‎Opera:​ } @keyframes myfirst { 0% {background:red;} 20%{background:yellow;} 40% {background:blue;} 80%{background:green;} 100%{background:white;} } @-moz-keyframes myfirst →‎Firefox:​ { 0% {background:red;} 20%{background:yellow;} 40% {backgroun…”
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
div
{
	width:200px;
	height:200px;
	background:white;
	animation:myfirst 3s;
	-moz-animation:myfirst 3s; /* Firefox */
	-webkit-animation:myfirst 3s; /* Safari and Chrome */
	-o-animation:myfirst 3s; /* Opera */
}

@keyframes myfirst
{
	0%   {background:red;}
	20%{background:yellow;}
	40% {background:blue;}
	80%{background:green;}
	100%{background:white;}
}

@-moz-keyframes myfirst /* Firefox */
{
	0%   {background:red;}
	20%{background:yellow;}
	40% {background:blue;}
	80%{background:green;}
	100%{background:white;}
}

@-webkit-keyframes myfirst /* Safari and Chrome */
{
	0%   {background:red;}
	20%{background:yellow;}
	40% {background:blue;}
	80%{background:green;}
	100%{background:white;}
}
	
@-o-keyframes myfirst /* Opera */
{
	0%   {background:red;}
	20%{background:yellow;}
	40% {background:blue;}
	80%{background:green;}
	100%{background:white;}
}