您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

CSS 透视图原点属性

2025/3/23 17:32:40发布21次查看
使用perspective-origin属性指定3d元素的底部位置。
您可以尝试运行以下代码来实现perspective-origin属性:
示例现场演示
<!doctype html><html> <head> <style> .demo1 { position: relative; width: 150px; height: 150px; background-color: yellow; perspective: 80px; margin: 50px; perspective-origin: left; } .demo2 { position: absolute; padding: 20px; background-color: orange; transform-style: preserve-3d; transform: rotatex(45deg); } </style> </head> <body> <h1>rotation</h1> <div class = "demo1">demo <div class = "demo2">demo</div> </div> </body></html>
以上就是css 透视图原点属性的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product