html空格的多种形式_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:45:54
Original
1966 people have browsed it

现在的浏览器都默认把多个连续的半角空格(从键盘space键输入)显示为一个,但有些特殊场景我们需要显示所有的空格位置,这时空格转义字符就派上用场了。空格的转义字符分为如下几种:

1.  &160#;不断行的空白(1个字符宽度)

2.  &8194#;半个空白(1个字符宽度)

3.  &8195#;一个空白(2个字符宽度)

4.  &8201#;窄空白(小于1个字符宽度)

平时一般用的是  在中文中更适合用 



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!