Html 是否有颠倒的插入字符?

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

Is there an upside down caret character?

htmlsortinguser-interfacecharacter-encodingcharacter

提问by Joel Coehoorn

I have to maintain a large number of classic ASP pages, many of which have tabular data with no sort capabilities at all. Whatever order the original developer used in the database query is what you're stuck with.

我必须维护大量经典的 ASP 页面,其中许多页面都有表格数据,根本没有排序功能。无论原始开发人员在数据库查询中使用的顺序是什么,您都会遇到麻烦。

I want to to tack on some basic sorting to a bunch of these pages, and I'm doing it all client side with javascript. I already have the basic script done to sort a given table on a given column in a given direction, and it works well as long as the table is limited by certain conventions we follow here.

我想对一堆这些页面进行一些基本的排序,并且我正在使用 javascript 进行所有客户端排序。我已经完成了在给定方向上对给定列上的给定表格进行排序的基本脚本,只要表格受到我们在此处遵循的某些约定的限制,它就可以很好地工作。

What I want to do for the UI is just indicate sort direction with the caret character ( ^ ) and ... what? Is there a special character that is the direct opposite of a caret? The letter vwon't quite cut it. Alternatively, is there another character pairing I can use?

我想要为 UI 做的只是用插入字符 ( ^ ) 指示排序方向,然后……什么?是否有与插入符号直接相反的特殊字符?这封信v不会完全削减它。或者,我可以使用其他字符配对吗?

回答by sblundy

There's ▲: ▲and ▼: ▼

还有▲:和▼:

回答by Josh Bodily

Don't forget the (logical and) and (logical or) characters, that's what I use for indicating sort direction: HTML entities ∧& ∨respectively.

不要忘记(逻辑和)和(逻辑或)字符,这就是我用来指示排序方向的:分别是HTML 实体∧& ∨

回答by Max Lybbert

There's always a lowercase "v". But seriously, aside from Unicode, all I can find would be &darr, which looks like ↓.

总是有一个小写的“v”。但说真的,除了 Unicode,我能找到的只有&darr,它看起来像 ↓。

回答by Bill Karwin

An upside-down circumflex is called a caron, or a há?ek.

颠倒的抑扬符称为caron或 há?ek。

It has an HTML entity in the TADS Latin-2 extension to HTML: ˇand looks like this: ˇ which unfortunately doesn't display in the same size/proportion as the ^ caret.

它在 HTML: 的 TADS Latin-2 扩展中有一个 HTML 实体,ˇ看起来像这样:ˇ 不幸的是,它的显示大小/比例与 ^ 插入符号不同。

Or you can use the unicode U+30C.

或者您可以使用 unicode U+30C

回答by ashleedawg

?????????????????????

????????????????????????

?????H???,s ? ??????u? s??˙????
?????Here's a matching set.????

????? H???,s ? ??????你?s ??˙????
????? 这是一个匹配的集合。???

?????????????????????

????????????????????????

"Actual size": ?????
(more info)

“实际尺寸”:?????
(更多信息)



Edit: Another Option...

编辑:另一种选择...

?????????? Unicode #8897 / U+22C1 (info)named N-ARY LOGICAL OR

?????????Unicode #8897 / U+22C1 ( info)命名为 N-ARY LOGICAL OR

?????????? Unicode #8896 / U+22C0 (info)named N-ARY LOGICAL AND

?????????Unicode #8896 / U+22C0 ( info)命名为 N-ARY LOGICAL AND

"Actual size": ????

“真实大小”: ????

回答by tomekwi

A powerful option – and one which also boosts creativity – is designing your own characters using box drawing characters.

一个强大的选择——也是一个可以提高创造力的选择——是使用框绘图字符设计你自己的角色

Want a down pointing "caret"? Here's one: ╲╱

想要一个向下的“插入符号”?这是一个:╲╱

I've recently discovered them — and I take great pleasure at using such custom designed characters for labeling things all around :) .

我最近发现了它们——我很高兴使用这种定制设计的字符来标记周围的东西:)。

回答by Mark Ransom

You might be able to use the black triangles, Unicode values U+25b2 and U+25bc. Or the arrows, U+2191 and U+2193.

您或许可以使用黑色三角形、Unicode 值 U+25b2 和 U+25bc。或者箭头,U+2191 和 U+2193。

回答by shahkalpesh

c# code

代码

int i = 0;
char c = '↑';
i = (int)c;
Console.WriteLine(i); // prints 8593

int j = 0;
char d = '↓';
j = (int)d;
Console.WriteLine(j); // prints 8595

回答by Colin D

You might consider using Font Awesomeinstead of using the unicode or other icons

您可能会考虑使用Font Awesome而不是使用 unicode 或其他图标

The code can be as simple as (a) including font-awesome e.g. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">(b) making a button such as <button><i class="fa fa-arrow-down"></i></button>

代码可以简单到 (a) 包括字体很棒,例如<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">(b) 制作一个按钮,例如<button><i class="fa fa-arrow-down"></i></button>

回答by Vilx-

I'd use a couple of tiny images. Would look better too.

我会使用几个小图像。也会更好看。

Alternatively, you can try the Character Map utility that comes with Windows or try looking here.

或者,您可以尝试使用 Windows 附带的字符映射实用程序或尝试查看此处

Another solution I've seen is to use the Wingdings font for symbols. That has a lot fo arrows.

我见过的另一个解决方案是对符号使用 Wingdings 字体。这有很多箭头。