Home > Web Front-end > JS Tutorial > body text

Let the text rotate 90 degrees and 180 degrees on the page_Typical special effects

WBOY
Release: 2016-05-16 19:26:47
Original
2104 people have browsed it

The new function of IE5.5: rotate text, you will understand after taking a look. The usage is as follows:
Get the writing mode:
object.style.writingMode
Set the writing mode:
object.style.writingMode = sFlowDir
where sFlowDir is
lr-tb or tb- One of rl

Setting value Effect
lr-tb Default object direction, that is, from left to right, top to bottom order
tb-rl The arrangement of objects is from top to down, arranged from right to left. The Chinese text is facing upward, and the English text is rotated 90 degrees clockwise.


The code is as follows:


[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template