Detailed explanation of the use of layout-grid-char attribute in css

黄舟
Release: 2017-06-21 10:03:09
Original
2089 people have browsed it


Syntax:

layout-grid-char : none | auto | length
Copy after login

Parameters:

none: Do not specify a row grid value
auto: Determine the grid according to the maximum character in the object text
length: Percentage | A length value composed of a floating point number and a unit identifier. The percentage value is based on the parent object size. See Length Units

Description:

Sets or retrieves the character grid value applied to the object text.
To implement this property, layout-grid-mode must be set to char or both.
The visual effect is similar to the line-height property. Applies only to block objects (such as divs).
The visual effect is similar to the line-height property.
Documents written in East Asian languages ​​(such as Chinese, Japanese) usually use a page layout of characters based on a one- or two-dimensional grid. You can add this layout to a web document using the layout-grid attribute.
This attribute only applies to block objects (such as div).
For this attribute to take effect, the layout-grid-mode attribute value must be set to line or both.
This property is read-only for the currentStyle object. For other objects can be read and written.
The corresponding script feature is layoutGridChar.
Example:

div { layout-grid-char: auto; }
Copy after login
layout-grid-char: none;
            layout-grid-line: none;
            layout-grid-mode: none;
            layout-grid-type: loose;
Copy after login

Why the prompt is not a known CSS property name

This does not affect the effect, overflow-x, overflow- y also prompted but the effect still came out

The above is the detailed content of Detailed explanation of the use of layout-grid-char attribute in css. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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