Home > Web Front-end > CSS Tutorial > Code for line spacing in css_Experience exchange

Code for line spacing in css_Experience exchange

PHP中文网
Release: 2016-05-16 12:07:39
Original
2130 people have browsed it

code for line spacing in css_experience exchange

the definition of line spacing in css is:

line-height:18px;
Copy after login

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; 
}
Copy after login

i just discovered today that it can be written in one line and modified as follows:

#myFont{ 
      font:12px/18px tahoma; 
}
Copy after login

the above is the css line spacing code in_experience exchange content, please pay attention to the php chinese website (m.sbmmt.com) for more related content!


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