是什么  字符?

时间:2011-04-04 16:09:10

标签: html

这个字符的含义是什么?

6 个答案:

答案 0 :(得分:115)

这将是HTML编码换行符(使用十六进制值)。

小数值为


答案 1 :(得分:19)

相当于\ n - > LF(换行)。

有时它用于HTML和JavaScript。否则,在.NET环境中,请使用Environment.NewLine

答案 2 :(得分:8)

这是LF0A)的ASCII / UTF代码 - 基于Unix的系统使用它作为换行符,而Windows使用CR-LF PAIR(OD0A

答案 3 :(得分:3)

这是一个换行符。你如何使用它取决于你。

答案 4 :(得分:3)


line feed字符的十六进制的HTML表示形式。它代表了Unix和类Unix(例如)操作系统的新线。

您可以在(例如)http://la.remifa.so/unicode/latin1.html

中找到此类字符的列表

答案 5 :(得分:0)

This is the ASCII format.

Please consider that:

Some data (like URLs) can be sent over the Internet using the ASCII character-set. Since data often contain characters outside the ASCII set, so it has to be converted into a valid ASCII format.

To find it yourself, you can visit https://en.wikipedia.org/wiki/ASCII, there you can find big tables of characters. The one you are looking is in Control Characters table.

Digging to table you can find

Oct Dec Hex Name 012 10 0A Line Feed

In the html file you can use Dec and Hex representation of charters

The Dec is represented with 


The Hex is represented with &#x0A (or you can omit the leading zero &#xA)

There is a good converter at https://r12a.github.io/apps/conversion/ .