twitter-bootstrap Twitter 引导程序使用的关闭符号的 unicode 字符是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7493954/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 16:16:52  来源:igfitidea点击:

What is the unicode character for the close symbol used by Twitter bootstrap?

unicodetwitter-bootstrap

提问by Bialecki

Just curious, because I just realized it wasn't an actual "x" (annoying how long that took to figure out).

只是好奇,因为我刚刚意识到这不是一个真正的“x”(烦人需要多长时间才能弄清楚)。

采纳答案by ikegami

It uses ×.

它使用×.

You can use the following to obtain the desired information about any character:

您可以使用以下内容获取有关任何字符的所需信息:

$ perl -Mcharnames=:full -CA -e'
   printf("U+%04X %s\n", $_, charnames::viacode($_))
      for unpack "W*", $ARGV[0];
' ×
U+00D7 MULTIPLICATION SIGN

If you're going to use it in HTML, you can encode it as follows:

如果要在 HTML 中使用它,可以按如下方式对其进行编码:

$ perl -MHTML::Entities -CA -e'
   CORE::say encode_entities($ARGV[0]);
' ×
×


Notes:

笔记:

  • The above programs expect the argument to be encoded using UTF-8.
  • The line breaks can be removed to make true one-liners.
  • 上述程序期望使用 UTF-8 对参数进行编码。
  • 可以删除换行符以制作真正的单线。

回答by Valentin Flachsel

The multiplication sign ( × ) was a bit too small for what I wanted and increasing the font size broke other things, so I found these larger alternatives:

乘号 ( × ) 对于我想要的来说有点太小了,增加字体大小破坏了其他东西,所以我找到了这些更大的替代方案:

Multiplication X(U+2715)

乘法 X(U+2715)

  • Decimal HTML entity: ✕
  • Hex HTML entity: ✕
  • 十进制 HTML 实体: ✕
  • 十六进制 HTML 实体: ✕

Heavy Multiplication X(U+2716)

重乘 X(U+2716)

  • Decimal HTML entity: ✖
  • Hex HTML entity: ✖
  • 十进制 HTML 实体: ✖
  • 十六进制 HTML 实体: ✖

Cross Mark(U+274C)

十字标记(U+274C)

  • Decimal HTML entity: ❌
  • Hex HTML entity: ❌
  • 十进制 HTML 实体: ❌
  • 十六进制 HTML 实体: ❌

I hope these will save somebody some time.

我希望这些可以节省一些时间。

回答by Joyrex

If you don't want to use Unicode, you can simply use the HTML character entity ×.

如果您不想使用 Unicode,则可以简单地使用 HTML 字符实体×

回答by Joyrex

right answer today: ×used in close buttons

今日正确答案:×用于关闭按钮

回答by Matas Vaitkevicius

Instead of giving you fish I will give you dynamite. When working online if you need to figure out what Unicode specific character is you can use following javascript (you might also need to add .val() or .text() or [0] after selector dependent on situation):

与其给你鱼,不如给你炸药。在线工作时,如果您需要弄清楚 Unicode 特定字符是什么,您可以使用以下 javascript(您可能还需要根据情况在选择器之后添加 .val() 或 .text() 或 [0]):

$('yourTextselector').charCodeAt(0).toString(16) // charCodeAt is the position of character in text you selected.

Example:

例子:

"?????????????????????".charCodeAt(2).toString(16)

returns "e49"

回报 "e49"

which means that it's \u0e49since leading zeroes get 'swallowed'.

这意味着它是\u0e49因为前导零被“吞下”。

This should help you identify other characters that look similar but are in fact different

这应该可以帮助您识别其他看起来相似但实际上不同的字符

Hope this saves you some time.

希望这可以为您节省一些时间。

回答by Jason Brower

Now that you have your answer, here is an additional helpful trick when working with Unicode on Windows OS.

既然您已经有了答案,那么在 Windows 操作系统上使用 Unicode 时,这里还有一个有用的技巧。

  1. Open up Wordpad
  2. Type in the Unicode value such as 2715
  3. With cursor next to what you typed, press ALT+Xon the keyboard.
  1. 打开写字板
  2. 输入 Unicode 值,例如2715
  3. 将光标放在您键入的内容旁边,按键盘上的ALT+X

It will show the visual representation of that character. This trick works in reverse as well. If you do a copy and paste of the visual representation and then hit ALT+X it will show you the numeric value.

它将显示该角色的视觉表现。这个技巧反过来也有效。如果您复制并粘贴视觉表示,然后按 ALT+X,它将显示数值。