How to use CSS to control word spacing_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:40:50
Original
925 people have browsed it

How to use CSS to control word spacing:

Sometimes the default word spacing cannot meet actual needs, and artificial control may be required, as follows Let’s briefly introduce how to achieve this effect.

Use the letter-spacing attribute to set the word spacing. The code example is as follows:

<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="author" content="http://www.softwhy.com/" /><title>蚂蚁部落</title></head><body><ul>  <li style="letter-spacing:2px;">欢迎来到蚂蚁部落</li>  <li style="letter-spacing:5px;">欢迎来到蚂蚁部落</li>  <li style="letter-spacing:8px;">欢迎来到蚂蚁部落</li>  <li style="letter-spacing:12px;">欢迎来到蚂蚁部落</li></ul></body></html>
Copy after login

The original address is: http://www.51texiao.cn/div_cssjiaocheng/2015/0503/600.html

The most original The address is: http://www.softwhy.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
Popular Tutorials
More>
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!