twitter-bootstrap 为什么引导程序不使用 X 图标作为关闭按钮?

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

Why bootstrap doesn't use an X icon for the close button?

twitter-bootstrapuser-interface

提问by carlosdubusm

I always wondered why bootstrap doesn't use an X icon for the close button.

我一直想知道为什么引导程序不使用 X 图标作为关闭按钮。

Is there any reason to not use the standard X?

有什么理由不使用标准的 X 吗?

Example:

例子:

bootstraop modal

引导模态

Standard X (gmail.com):

标准 X (gmail.com):

enter image description here

在此处输入图片说明

回答by CodeManX

It does use an "x", it uses this character to be precise: ×(×)

但它确实使用一个“x”时,它使用该字符是精确的:××

Bootstrap Modal dialog, X close button

Bootstrap Modal dialog, X close button

http://getbootstrap.com/javascript/#modals

http://getbootstrap.com/javascript/#modals

In your screenshot, it looks like a russian ч, do you happen to work with a cyrillic OS?

在您的屏幕截图中,它看起来像一个俄语ч,您碰巧使用的是西里尔文操作系统吗?

回答by Astrotim

The modal uses the HTML entity for "times" (as in multiplication) which is ×. The source code from the demo on the Bootstrap siteis:

模态使用 HTML 实体表示“时间”(如乘法),即×. Bootstrap 站点上演示的源代码是:

<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> 

I'm not sure why it is being rendered as something different, it renders as an xon all browsers in which I view the page.

我不确定为什么它被呈现为不同的东西,它x在我查看页面的所有浏览器上呈现为。

enter image description here

enter image description here