英 [r???te??n]? ?美 [ro??te??n]??

n.旋轉(zhuǎn),轉(zhuǎn)動;輪流,循環(huán);[農(nóng)]輪作;[天]自轉(zhuǎn)

復數(shù): rotations

css rotation屬性 語法

作用:圍繞由 rotation-point 屬性定義的點對元素進行旋轉(zhuǎn)。

語法:rotation: angle;

說明:angle ? ?元素旋轉(zhuǎn)角度。可能的值:0deg 到 360deg。? ??

注釋:邊框、內(nèi)邊距、內(nèi)容以及背景(非固定)也會被旋轉(zhuǎn)!目前沒有瀏覽器支持 rotation 屬性。

css rotation屬性 示例

<!DOCTYPE html>
<html>
<head>
<style> 
h1
{
rotation-point:50% 50%;
rotation:180deg;
}
</style>
</head>
<body>

<h1>旋轉(zhuǎn)效果</h1>

<p><b>注釋:</b>目前沒有瀏覽器支持 rotation-point 或 rotation 屬性。</p>

</body>
</html>

運行實例 ?

點擊 "運行實例" 按鈕查看在線實例