Let the text on the page 90 degrees, 180 degrees flip _ typical special effects

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 > cloud-dwelling community-click on the page </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>
[ctrl+a All selected note: If you need to introduce external JS need to refresh to perform]

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.