我可以用什么字符来显示“四箭头图标”?

问题描述 投票:0回答:2

我可以使用什么 Unicode 字符来显示该字符?

我目前需要它来编写 .doc 文档,但我想知道 Unicode 字符是否可用,以便在应用程序中打印出来,或者某些字体是否包含此字形。

unicode icons ascii symbols
2个回答
18
投票

这些字形:

  • ✥ 四个俱乐部星号
  • ✢ 四个泪滴星号
  • ✣ 四颗气球星号

是最好的匹配。如果使用小字体,它们就可以完成这项工作。

一个丑陋的替代方案是使用三个字形,也许混合不同的字体大小和字体:←↕→

更新: HTML 存在一个(很好的)替代方案。诀窍是将两个字符放置在绝对位置上,一个放在另一个之上:

更新2:添加了“旋转”四箭头的另一种变体,使用三角头箭头

.container {
  width: 100px;
  height: 100px;
  position: relative;
}
.first,
.second,
.third,
.fourth {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.second {
  z-index: 10;
}
.third {
  z-index: 20;
}
.fourth {
  z-index: 30;
}

body {
    font-family: Monospace; font-size: 50px;
}
<div class="container">
  <div class="first">&#x2194;</div>
  <div class="second">&#x2195;</div>
</div>

<div class="container">
  <div class="first">&#x2928;</div>
  <div class="second">&#x292A;</div>
</div>

<div class="container">
  <div class="first">&#x2B66;</div>
  <div class="second">&#x2B67;</div>
  <div class="third">&#x2B68;</div>
  <div class="fourth">&#x2B69;</div>
</div>


0
投票

To get &nbsp; <span style="position:relative; font-size:2rem">&UpDownArrow;<span style="position:absolute; left:-.25em; top:-.025em;">&LeftRightArrow;</span></span> &nbsp; <code><a href="">use &UpDownArrow;</a> <a href="">and &LeftRightArrow;</a></code>

© www.soinside.com 2019 - 2024. All rights reserved.