上下三角形的HTML实体是什么? [英] What are the HTML entities for up and down triangles?

查看:847
本文介绍了上下三角形的HTML实体是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有人知道这些实体吗?

解决方案

你的意思是& uarr; (&)和& darr; (&darr)?所有命名的 HTML实体都在HTML标准的第24章中指定。页面中唯一缺少的是渲染实体,但是您可以通过应用简单的正则表达式轻松地创建自己的副本和附加信息:

  s /& lt;!ENTITY(\S +)/& lt;!ENTITY \1& \ 1; / 

并非所有的实体都被命名。对于很多人来说,你需要用十进制(#9650;▲,▼▼)或十六进制(▲&#x25B2 ;,▼&# x25BC;)。


I've found the outlined versions, but I want the solid ones.

Does anyone know these entities?

解决方案

You mean ↑ (↑) and ↓ (↓)? All named HTML entities are specified in chapter 24 of the HTML standard. The only thing missing from the page are rendered entities, but you can easily create your own copy with the additional information by applying a simple regexp:

s/<!ENTITY (\S+)/<!ENTITY \1 &\1;/

Not all entities are named. For many, you need to specify the Unicode code page, either in decimal (▲ ▲, ▼ ▼) or hex (▲ ▲, ▼ ▼).

这篇关于上下三角形的HTML实体是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆