html - 为什么伪元素在不同设备上看起来不同?
问题描述
我在我的页面中包含的 CSS 文件中使用了此代码,但有时会以不同的外观出现。例如,颜色是白色,但在某些 android 设备中呈现为红色!
input[type="checkbox"]:checked::after{
position: relative !important;
content: '✔' !important;
display: inline-block !important;
font-size: 19px !important;
margin: -9px 1px !important;
color: #fff !important;
vertical-align: top !important;
font-weight: normal !important;
font-family: Yekan !important;
z-index: 0;
}
问题是什么?
解决方案
推荐阅读
- python-3.x - ImportError: HttpLocust 类已在 1.0 版中重命名为 HttpUser
- swift - 从 firebase 快速获取数据
- powershell - 目录搜索器未返回所有结果
- c# - C# ASP.NET Core 2.1 Linux NTLM Apache 2.2 - 获取用户名?
- alert - 将 pine 脚本策略转换为学习
- odoo - Odoo 错误渲染编译 AST,UndefinedTable
- python - pandas 客户表 >> 将边添加到节点列和 deltatimes
- javascript - 使用 let 关键字在块内重新声明变量并在它之前访问但给出错误
- powershell - Powershell 脚本并输出到文件共享
- java - Activity 对 Android 中的通信进行分段