Home  >  Article  >  Web Front-end  >  How to use CSS to control word spacing_html/css_WEB-ITnose

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

WBOY
WBOYOriginal
2016-06-24 11:40:50936browse

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>

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

The most original The address is: http://www.softwhy.com/

Statement:
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