Home > Article > Web Front-end > Code for line spacing in css_Experience exchange
code for line spacing in css_experience exchange
the definition of line spacing in css is:
line-height:18px;
the above code is to spacing is set to 18px. for a long time, when i defined the font style, it was usually like this:
#myfont{ font:12px tahoma; line-height:18px; }
i just discovered today that it can be written in one line and modified as follows:
#myFont{ font:12px/18px tahoma; }
the above is the css line spacing code in_experience exchange content, please pay attention to the php chinese website (www.php.cn) for more related content!