实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>css rotateX() 方法 实例 - 自学教程(runoops.com)</title> <style> div { width: 100px; height: 75px;-ms-scroll-snap-x: ; background-color: red; border: 1px solid black; } div#div2 { transform: rotateX(120deg); -webkit-transform: rotateX(120deg); /* Safari and Chrome */ } </style> </head> <body> <p><b>注意:</b> Internet Explorer 9 (以及更早版本的浏览器) 和 Opera 不支持 rotateX 方法.</p> <div>Hello. This is a DIV element.</div> <div id="div2">Hello. This is a DIV element.</div> </body> </html>
运行结果: