实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<style> 
5
div
6
{
7
width:100px;
8
height:50px;
9
background:red;
10
color:white;
11
font-weight:bold;
12
transition:width 2s;
13
-webkit-transition:width 2s; /* Safari */
14
}
15
16
#div1 {transition-timing-function: linear;}
17
#div2 {transition-timing-function: ease;}
18
#div3 {transition-timing-function: ease-in;}
19
#div4 {transition-timing-function: ease-out;}
20
#div5 {transition-timing-function: ease-in-out;}
21
22
/* Safari */