【问题标题】:Bullet character is oversized on android项目符号字符在 android 上过大
【发布时间】:2020-07-08 00:15:36
【问题描述】:

我在我的菜单中使用项目符号字符 \25Cf 作为伪元素。它在 Chrome PC 上显示良好,但在 Chrome Android 上,字符太大了。页面上所有其他文本的大小都正确...这是标记:

CSS:

.current-menu-item a:before {
    content: "\25Cf";
    position: relative;
    font-size: 0.7em;
    left: -15px;
    top: -3px;
}

HTML:

<li id="menu-item-76" class="current-menu-item"><a href="http://localhost:8080/wp12-fidusalaire/" aria-current="page">services</a></li>

我尝试以像素或 rem 为单位设置大小,但没有明显的结果...

非常感谢。

【问题讨论】:

  • 您找到解决方案了吗?我有同样的问题。

标签: android css font-size bullet


【解决方案1】:

那个 unicode 字符恰好在 android 上过大 - \2022 在不同设备上更加一致,仍然是一个子弹

【讨论】:

    猜你喜欢
    • 2017-05-27
    • 1970-01-01
    • 2015-04-14
    • 1970-01-01
    • 1970-01-01
    • 2015-05-17
    • 1970-01-01
    • 2011-10-16
    • 1970-01-01
    相关资源
    最近更新 更多