用户:-木木夕-/common.css
来自Limbo Wiki Mirror
< 用户:-木木夕-
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按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;}
}
/*另外一个没写完,我再次看不懂教程了;)*/
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body
{
background-image: linear-gradient(to right, rgba(158, 214, 255), rgba(255, 188, 188));
}
</style>
</head>
<body>
<h1>标题</h1>
<p>内容</p>
</body>
</html>
