菜单切换
htmlbook实例代码
htmlbook在线教程
htmlbook站长工具
赞赏工具
源代码
(
显示异常
)
:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>htmlbook实例代码(htmlbook.com.cn)</title> <style> div { width:100px; height:100px; background:red; transition:width 2s; -webkit-transition:width 2s; /* Safari */ } div:hover { width:300px; } </style> </head> <body> <p><b>注意:</b>该实例无法在 Internet Explorer 9 及更早 IE 版本上工作。</p> <div></div> <p>鼠标移动到 div 元素上,查看过渡效果。</p> </body> </html>
运行结果