Let the text on the page 90 degrees, 180 degrees flip
Source: Internet
Author: User
IE5.5 's new feature: Rotate the text, and you'll see. Usage is as follows:
Get the way you write:
Object.style.writingMode
Set the way you write:
Object.style.writingMode = Sflowdir
Where Sflowdir is one of LR-TB or TB-RL.
Set Value effect
LR-TB the default object orientation, from left to right, from top to bottom
The Tb-rl object is arranged from top to bottom and from right to left. Chinese text direction upward, the English text rotates clockwise 90 degrees.
The code is as follows:
<div id=test style= "position:relative" >8 month 14th, the Russian Ministry of Defense ... The crew have all been killed. </div>
<script language=javascript>
Document.onclick = rotate; function rotate () {
if (Test.style.writingMode = = "Lr-tb") {
Test.style.writingMode = "TB-RL";
}
else {
Test.style.writingMode = "LR-TB";
}
}
</SCRIPT>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.