transform-origin(改变元素基点)

来源:互联网 发布:排序算法比较 编辑:程序博客网 时间:2024/05/16 13:19

transform-origin:是变形原点,图形绕着该原点变形旋转。

使用规则:
transform-origin:x,y;

    top left | left top 等价于 0 0;    top | top center | center top 等价于 50% 0    right top | top right 等价于 100% 0    left | left center | center left 等价于 0 50%    center | center center 等价于 50% 50%(默认值)    right | right center | center right 等价于 100% 50%    bottom left | left bottom 等价于 0 100%    bottom | bottom center | center bottom 等价于 50% 100%    bottom right | right bottom 等价于 100% 100%
1 0
原创粉丝点击