首页
极刻
圈子
教程
开源
登录 / 注册
返回教程:CSS3 教程
TRY RUN / 在线示例
CSS3 教程 尝试一下
CSS3 教程 尝试一下
源代码
运行
<!DOCTYPE html> <html> <head> <style> div { width:100px; height:75px; background-color:red; border:1px solid black; } div#div2 { transform:rotateX(120deg); -webkit-transform:rotateX(120deg); /* Safari and Chrome */ } </style> </head> <body> <p><b>Note:</b> Internet Explorer 9 (and earlier versions) and Opera does not support the rotateX method.</p> <div>Hello. This is a DIV element.</div> <div id="div2">Hello. This is a DIV element.</div> </body> </html>
运行结果