AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
# CSS3 rotation-point 属性 ## 实例 将 h1 元素旋转 180 度(从上向下): ``` h1 { rotation-point:50% 50%; rotation:180deg; } ``` ## 浏览器支持 目前没有浏览器支持 rotation-point 属性。 ## 定义和用法 rotation-point 属性是一对值,定义从上左边框边缘进行偏移的点。 提示:rotation-point 属性需要与 [rotation](/cssref/pr_rotation.asp "CSS3 rotation 属性") 属性结合使用。 | 默认值: | 50% 50% | | --- | --- | | 继承性: | no | | --- | --- | | 版本: | CSS3 | | --- | --- | | JavaScript 语法: | _object_.style.rotationPoint="25% 25%" | | --- | --- | ## 语法 ``` rotation-point: _value_; ``` | 值 | 描述 | | --- | --- | | * left top * left center * left bottom * right top * right center * right bottom * center top * center center * center bottom | 如果只规定一个关键词,则第二个值将是 "center"。 | | _x% y%_ | 百分比值,参考边框盒宽度和高度。 |