Html 在适当的支持下使用中间点 ASCII?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5199256/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Using middle-dot ASCII with proper support?
提问by AKor
I'm using the middle dot - ·
- a lot in my website. The ASCII is ·
, which works fine. However, there are still some problems with some users not seeing the symbol. Is there a very close but more widely supported symbol like this, or is there a way to output the symbol to ensure full support?
我·
在我的网站上经常使用中间点。ASCII 是·
,它工作正常。但是,仍然存在一些用户看不到符号的问题。是否有一个非常接近但更广泛支持的符号,或者有没有办法输出符号以确保完全支持?
回答by dan04
I can't imagine why a font would lack an ISO-8859-1 character, but you might want to try these:
我无法想象为什么字体会缺少 ISO-8859-1 字符,但您可能想尝试以下这些:
? U+2022 BULLET
? U+2219 BULLET OPERATOR
回答by Remy Lebeau
Whether you use the actual ·
character or the HTML ·
entity, make sure ISO-8859-1
is being reported to the browser correctly, either in the charset
attribute of the HTTP Content-Type
response header, or in a <meta http-equiv="Content-Type" value="text/html; charset=ISO-8859-1">
tag (HTML 4 and earlier) or <meta charset="ISO-8859-1">
tag (HTML 5) inside the HTML itself.
无论您使用实际·
字符还是 HTML·
实体,请确保在 HTTP响应标头ISO-8859-1
的charset
属性中Content-Type
,或在<meta http-equiv="Content-Type" value="text/html; charset=ISO-8859-1">
HTML中的标记(HTML 4 及更早版本)或<meta charset="ISO-8859-1">
标记 (HTML 5) 中正确报告给浏览器本身。
回答by Ben2
Alt+7 creates this: ? You can create the entire ASCII codes from 1 to 255 using Excel. The formula is =Char(x), being x the integer from 1 to 255.
Alt+7 创建这个: ? 您可以使用 Excel 创建从 1 到 255 的整个 ASCII 代码。公式为 =Char(x),其中 x 是 1 到 255 之间的整数。