代码示例:(标识:css_transform_rotate1)
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf8" />
<link rel="stylesheet" type="text/css" href="/static/demo/html/css/cc.css" />
<script type="text/javascript" src="/static/demo/html/css/cs.js"></script>

<script type="text/javascript">
<!--
function test_demo_val(strValue)
{

var strId="MyDIV"

document.getElementById(strId).style.transform=strValue;
document.getElementById(strId).style.WebkitTransform=strValue;
document.getElementById(strId).style.MozTransform=strValue;
document.getElementById(strId).style.OTransform=strValue;
document.getElementById(strId).style.msTransform=strValue;

document.getElementById("CodeValue").innerHTML=strValue;
}
//-->
</script>

<style>
#MyDIV
{
width:200px;
height:100px;
margin:80px;
border:1px solid black;
background-color:lightblue;
}

#MyDIV
{
transform:rotate(10deg);
-webkit-transform:rotate(10deg);
-moz-transform:rotate(10deg);
-ms-transform:rotate(10deg);
-o-transform:rotate(10deg);

}
</style>

</head>

<body>
<!--wrapper-->
<div id="wrapper">

<div id="SelArea">
<h2>CSS 属性:</h2>

<h3>transform:</h3>				

<form action="javascript:return false;">
<ul>
<input type="hidden" id="PreSelectedValue" value="" />
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_1" value="rotate(10deg)" checked="checked" />rotate(10deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_2" value="rotate(20deg)" />rotate(20deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_3" value="rotate(30deg)" />rotate(30deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_4" value="rotate(40deg)" />rotate(40deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_5" value="rotate(45deg)" />rotate(45deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_6" value="rotate(50deg)" />rotate(50deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_7" value="rotate(60deg)" />rotate(60deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_8" value="rotate(70deg)" />rotate(70deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_9" value="rotate(80deg)" />rotate(80deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_10" value="rotate(90deg)" />rotate(90deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_11" value="rotate(100deg)" />rotate(100deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_12" value="rotate(110deg)" />rotate(110deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_13" value="rotate(120deg)" />rotate(120deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_14" value="rotate(130deg)" />rotate(130deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_15" value="rotate(140deg)" />rotate(140deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_16" value="rotate(150deg)" />rotate(150deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_17" value="rotate(160deg)" />rotate(160deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_18" value="rotate(170deg)" />rotate(170deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_19" value="rotate(180deg)" />rotate(180deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_20" value="rotate(270deg)" />rotate(270deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_21" value="rotate(360deg)" />rotate(360deg)</li>
<li><input autocomplete="off" type="radio" name="rpos" onClick="test_demo(this)" id="value_22" value="none" />none</li>
</ul>
</form>

</div>

<div id="result">
<h2>结果:</h2>

<div id="DemoArea">
<div id="MyDIV">MyDIV</div>
</div>

<h2>CSS 代码:</h2>

<pre id="CodeArea">
#MyDIV
{
transform:<span id="CodeValue">rotate(10deg)</span>;
}
</pre>
</div>

</div><!--wrapper End-->
</body>

<script type="text/javascript">tiy_onload()</script>

</html>
运行结果: