A text style is a set of text settings that can be saved with a graphic, including font settings, special effects, and so on. Text styles are displayed differently in different software environments. Here's how to get the text vertical in HTML? A summary of several ways to implement vertical style of text
CSS text styles that must be mastered
Font family
Serif font serif
Sans Serif font Sans-serif
Generally for compatibility with one of the above, to avoid the current system does not have a font set
I. Vertical text Setting method
1. Js+css To achieve a three-dimensional button text Vertical menu effect
This is a better vertical menu, a three-dimensional effect of the menu, do not think those with stereoscopic effects of the menu is a button ah, in fact, it is the use of JavaScript code to decorate the button, the mouse on the time will have obvious three-dimensional text effect, vertical arrangement, can also be modified to horizontal.
The results are as follows:
2. 4 kinds of CSS text vertical row method
Sometimes, we need to the text of a certain area of the page vertical, vertical arrangement, the landscape of course everyone is accustomed to, for the vertical row, a time can not find ideas, hehe, in fact, and horizontal as simple, the following 4 ways to achieve the CSS text vertical row.
The first method: Place the characters that need to be displayed vertically in span, set the display property of span in CSS to block, but this is not recommended because it is a bit cumbersome.
3. How CSS implements text vertical effects
Text vertical Although not commonly used, but not without this aspect of the requirements, but the existing CSS property support is not high or compatibility is not good, really did not find the right way to achieve this effect, the following share a JavaScript implementation of the effect, we can learn from it, the effect is very good. The code example is as follows:
4. How do I vertically arrange my english in table?
Those are all from the top down, similar to the clockwise; I want English words, bottom reading, the equivalent of counterclockwise.
5. JS implementation of the Flash effect of the vertical navigation code
This is a JS+CSS implementation of the Flash effect of the navigation menu, vertical arrangement, good compatibility, by the JavaScript wonderful class friends to write, welcome to test.
6. JS implementation with 3D stereoscopic gray-Silver vertical folding Menu Code
This is a super cool can be used to the left of the Web page of gray-level vertical multi-fold menu, you can add a background to the menu, CSS reserved code, which is the comparison standard and classic a background management mode of the menu, DIV+CSS structure, in line with the standard, easy to modify, very good.
Ii. related questions and answers:
1. Python-tkinter label How to change the text style in the label, for example to add strikethrough to text
2. JavaScript-are there any JS libraries that display text effects (non-compositing) on the image?