上下三角形的 HTML 实体是什么?

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

What are the HTML entities for up and down triangles?

htmlentity

提问by alex

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

我找到了概述的版本,但我想要实体的。

Does anyone know these entities?

有人知道这些实体吗?

回答by outis

You mean ↑ (↑) and ↓ (↓)? All named HTML entitiesare 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:

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

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

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

并非所有实体都已命名。对于许多情况,您需要指定 Unicode 代码页,可以是十进制 (▲ ▲, ▼ ▼) 或十六进制 (▲ ▲, ▼ ▼)。

回答by Brian Leishman

A little but late, but you can use ▾▾, and ▴▴, to make both the up and down filled in triangles. I was looking for it myself and the alt codes didn't help so I decided to share this. This same thing works for both left and right as well.

有点晚了,但是您可以使用▾▾ 和▴▴ 将上下填充为三角形。我自己正在寻找它,但替代代码没有帮助,所以我决定分享这个。同样的事情也适用于左侧和右侧。

回答by Chase Florell

I don't know if I've ever seen what you're looking for. Maybe a better way of doing it would be to create the arrows in Photoshop on a transparent background (.gif or .png format), and then load up the images.

我不知道我是否见过你要找的东西。也许更好的方法是在 Photoshop 中在透明背景(.gif 或 .png 格式)上创建箭头,然后加载图像。

Check that, you can do it through alt characters.
http://www.tedmontgomery.com/tutorial/ALTchrc.html

检查一下,您可以通过 alt 字符来完成。
http://www.tedmontgomery.com/tutorial/ALTchrc.html

▼ ▲

▼ ▲

回答by Kelly Allen

using the alt characaters on your computer keyboard is a big no no if you are working on a web page for many reasons. #1. encoding of the website, encoding of the database driving the website if any, the codepage of the computer view the website, the codepage your own pc's keyboard is set to.. all that are mostly factors you can not control. So some people will see wonky weird letter combos or sqiggle characters instead of what you intend. For webpages use the html codes for those characters when ever you can. or at least entity encode and make sure you have your code page defined in your html header of your site.. that way people will see what you intend them to.

如果您出于多种原因在网页上工作,则在计算机键盘上使用 alt 字符是一个很大的禁忌。#1. 网站的编码,驱动网站的数据库的编码(如果有的话),电脑查看网站的代码页,你自己的电脑键盘设置的代码页......所有这些都是你无法控制的因素。所以有些人会看到古怪的字母组合或乱码字符,而不是你想要的。对于网页,请尽可能使用这些字符的 html 代码。或至少实体编码并确保您在您网站的 html 标题中定义了您的代码页。这样人们就会看到您想要他们做什么。

now if you are doing this in word for a document that will be viewed in your own country you are probably safe. But for online things (site coding or data entry) you should avoid this like the plague.

现在,如果您在 Word 中为将在您自己的国家/地区查看的文档执行此操作,您可能是安全的。但是对于在线事物(站点编码或数据输入),您应该像瘟疫一样避免这种情况。