fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> <style> div { width:100px; height:100px; background:red; transition-property:width,height; transition-duration:2s; /* Safari */ -webkit-transition-property:width,height; -webkit-transition-duration:2s; } div:hover { width:300px; height:300px; } </style> </head> <body> <p><b>注意:</b> 该实例不支持Internet Explorer 9以及更早版本的浏览器.</p> <div></div> <p>将鼠标移动至元素上查看过渡效果.</p> </body> </html>
运行结果