替代&安培;#x2610;和与放大器;#x2612;在Android(三星表2)浏览器 [英] Alternative to ☐ and ☒ on Android (Samsung Tab 2) browser

查看:283
本文介绍了替代&安培;#x2610;和与放大器;#x2612;在Android(三星表2)浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

互联网浏览器我已经安装了(默认)在我的三星TAB2不显示☐&放大器;#x2610; 和☒&放大器;#x2612 ; 字符正确。什么是替代解决方案?

Internet browser I have installed (by default) on my Samsung Tab2 does not display ☐☐ and ☒☒ characters properly. What are alternative solutions?

推荐答案

Android上的字体不包含这些字符,所以你的选择似乎是:

The fonts on Android do not contain these characters, so your options seem to be:


  1. 使用可下载字体,通过 @字体面。它可以是很难找到的字体适于此,因为大多数免费字体在它们的字符覆盖相当有限。其中包含这些字符相对较少的字体(参见以字体覆盖信息在Fileformat.info 的),幻觉记忆三世可能是合适的(文件大小,约668千字节)虽然有点大。

  2. 使用图像。有点沉闷这些天,但一个有效的解决方案。在这种情况下,创建几倍于预期的字体大小更大,其缩小以匹配的字体大小的图像,使用例如宽度:0.6em 的图像

  3. 使用一个没有休息的空间和乘号×,并把与CSS,他们变成小方块与边界。下面的示例code。这似乎是这里最好的办法。

  1. Use a downloadable font, via @font-face. It can be difficult to find a font suitable for this, since most free fonts are rather limited in their character coverage. Among the relatively few fonts that contain these characters (cf. to font coverage info at Fileformat.info), DejaVu Sans might be suitable (though somewhat large in file size, about 668 kilobytes).
  2. Use images. A bit dull these days, but a working solution. In this case, create images that are several times larger than expected font size and scale them down to match the font size, using e.g. width: 0.6em for the images.
  3. Use a no-break space and the multiplication sign "×" and put, with CSS, them into small boxes with borders. Sample code below. This seems to be the best approach here.

<style>
.box {
  display: inline-block;
  vertical-align: baseline;
  line-height: 0.6;
  border: solid 0.08em;
  width: 0.6em;
  height: 0.6em;
  text-align: center;
  font-weight: bold;
}
</style>
<span class=box>&nbsp;</span>
<span class=box>&times;</span>


这篇关于替代&安培;#x2610;和与放大器;#x2612;在Android(三星表2)浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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