文字横躺旋转90度-只支持IE.html
<html>
<head>
<script>
var i = 0;
function rot()
{
i = ++i % 4;
if (!document.all.aDiv.style.filter)
document.all.aDiv.style.filter =
'progid:DXImageTransform.Microsoft.BasicImage(rotation=' + i + ')';
else
document.all.aDiv.filters.item('DXImageTransform.Microsoft.BasicImage').Rotation
= i;
} // ends function rot(void)
</script>
</head>
<body>
<input type="text" value="" />
<input type="button" value="Rotate by 90 deg" onclick="rot();" />
<div id="aDiv" style="width: 100px; height: 10px; background-color:
lime;">
<label id="l1">陈驰</label>
</div>
</body>
</html>
浙公网安备 33010602011771号