什么字符可以用于在 HTML 中显示的上/下三角形(没有茎的箭头)? [英] What characters can be used for up/down triangle (arrow without stem) for display in HTML?
问题描述
我正在寻找 HTML 或 ASCII 字符,它是一个向上或向下的三角形,以便我可以将其用作切换开关.
I'm looking for a HTML or ASCII character which is a triangle pointing up or down so that I can use it as a toggle switch.
我发现 ↑(↑
) 和 ↓(↓
) - 但那些词干很窄.我只是在寻找 HTML 箭头head".
I found ↑ (↑
), and ↓ (↓
) - but those have a narrow stem. I'm looking just for the HTML arrow "head".
推荐答案
Unicode 箭头:
Unicode arrows heads:
- ▲ - U+25B2 黑色向上三角形
- ▼ - U+25BC 黑色向下三角形
- ▴ - U+25B4 黑色小三角形
- ▾ - U+25BE 小黑向下三角形
对于 ▲ 和 ▼,如果您不能直接包含 Unicode 字符(使用 UTF-8!),请分别使用 ▲
和 ▼
.
For ▲ and ▼ use ▲
and ▼
respectively if you cannot include Unicode characters directly (use UTF-8!).
请注意,对较小版本的字体支持不太好.最好使用较小字体的大版本.
Note that the font support for the smaller versions is not as good. Better to use the large versions in smaller font.
更多 Unicode 箭头位于:
More Unicode arrows are at:
- http://en.wikipedia.org/wiki/Arrow_%28symbol%29#Arrows_in_Unicode
- http://en.wikipedia.org/wiki/Geometric_Shapes
最后,这些箭头不是 ASCII,包括 ↑ 和 ↓:它们是 Unicode.
Lastly, these arrows are not ASCII, including ↑ and ↓: they are Unicode.
这篇关于什么字符可以用于在 HTML 中显示的上/下三角形(没有茎的箭头)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!