Definition
Line-heightDefines the height before two rows.
Inheritance: Yes
Note: negative values are not allowed.
JavaScript syntax
The CSS attribute of can also dynamically change a JavaScript.
Script syntax: object. style. lineHeight = "2"
Let's take a look at the line-height instance tutorial.
P
{
Line-height: 1.4
}
P
{
Line-height: 14pt
}
P
{
Line-height: 140%
}
Let's see an instance.
<Html>
<Head>
<Style type = "text/css">
P. small
{
Line-height: 10px
}
P. big
{
Line-height: 30px
}
</Style>
</Head>
<Body>
<P>
This is the height of the first standard line.
The default row height is 20px in most browsers.
This is the height of the first standard line.
This is the height of the first standard line.
</P>
<P class = "small">
This is the height of the first large line.
This is the height of the first large line.
This is the height of the first large line.
This is the height of the first large line.
</P>
<P class = "big">
This is the height of the first large line.
This is the height of the first large line.
This is the height of the first large line.
This is the height of the first large line.
</P>
</Body>
</Html>
What is the effect.