CSS to achieve line spacing effect_Experience exchange

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

css to achieve line spacing effect_experience exchange

the definition of line spacing in css is:

line-height:18px;
Copy after login

the above code sets the line spacing is 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 achieve line spacing effect_experience exchange content, for more related content, please pay attention to the php chinese website (m.sbmmt.com)!


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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!