Let the text on the page 90 degrees, 180 degrees flip

Source: Internet
Author: User
Tags new features
New features of page IE5.5: Rotate text, look at it 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>

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.