ms 属性

说明:

毫秒

1s = 1000ms

兼容性:

浅绿 = 支持

红色 = 不支持

粉色 = 部分支持

IEFirefoxChromeSafariOperaiOS SafariAndroid BrowserAndroid Chrome
6.0-8.02.0+4.0+3.1+3.5+3.2+2.1+18.0+
9.0+


实例

<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="utf-8" />

<style>
h1{font-size:16px;}
.test{position:absolute;left:8px;width:200px;height:100px;margin:0 5px;padding:10px;border:1px solid #ddd;background-color:#eee;color:#000;
	-moz-transition-property:left;
	-moz-transition-duration:300ms;
	-moz-transition-timing-function:ease-in;
	-webkit-transition-property:left;
	-webkit-transition-duration:300ms;
	-webkit-transition-timing-function:ease-in;
	-o-transition-property:left;
	-o-transition-duration:300ms;
	-o-transition-timing-function:ease-in;
	transition-property:left;
	transition-duration:300ms;
	transition-timing-function:ease-in;
}
.test:hover{left:100px;}
</style>
</head>
<body>
<h1>请将鼠标移动到下面的矩形上:</h1>
<div class="test">矩形在300ms内慢慢向右移动<br />transition-duration:300ms;</div>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

效果图:

GIF.gif