• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

&当量;(≤ and ≥ symbols on internet explorer?)_电脑培训

原作者: [db:作者] 来自: 网络 收藏 邀请

&当量;(≤ and ≥ symbols on internet explorer?)

我注意到Internet Explorer上的符号≥和≤已被破坏:它们显示为≥≤ 而不是作为实际的符号(至少在Win7下的IE9)。

有没有办法在Internet Explorer上显示实际字符≤和≥(例如,另一种方式来编写它,一个javascript修复...)? 我需要在我的网站上的几个地方展示它们,我希望该网站也可以在Internet Explorer上查看。


I have noticed that the symbols ≥ and ≤ are broken on Internet Explorer: they display as ≥ and ≤ instead of as the actual symbol (at least on IE9 under Win7).

Is there any way to display the actual characters ≤ and ≥ on Internet Explorer (e.g. another way to write it, a javascript fix...)? I'd need to show them on a few places on my site, and I'd like the site to be viewable for Internet Explorer too.


原文:https://stackoverflow.com/questions/14968226
更新时间:2022-03-22 21:03

最满意答案

您可以直接使用字符“≥”和“≤”,前提是您的页面是UTF-8编码并声明为此。 如果这不可能或不够方便,你可以使用字符引用≥≤ (或其十进制等值)。

或者,您可以使用旧的实体引用≥≤ ,其含义与≥相同≥≤ 但是得到了更好的支持(普遍)。

实体引用,例如≥ (应避免与HTML 4.01中定义实体集相反)。 它们不会增加HTML语言的表达能力; 它们只是为字符引用提供了一种欺骗性的准助记符替代方法。 它们是在HTML5草案中引入的,主要是因为它们是用MathML定义的,不到两年前没有浏览器支持它们,因此仍有大量浏览器将它们视为未定义,从字面上显示它们。


You can use the characters “≥” and “≤” directly, provided that you page is UTF-8 encoded and declared as such. If this is not possible or convenient enough, you can use the character references ≥ and ≤ (or their decimal equivalents).

Alternatively, you can use the older entity references ≥ and ≤, which have the same meaning as ≥ and ≤ but are much better supported (universally).

Entity references such as ≥ (as opposite to the set of entities as defined in HTML 4.01) should be avoided. They add nothing to the expressive power of the HTML language; they just provide a deceptive quasi-mnemonic alternative to character references. They were introduced in HTML5 drafts mainly because they are defined in MathML, and less than two years ago no browser supported them, so there is still a large number of browsers that treat them as undefined, displaying them literally.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap