【发布时间】:2021-11-26 15:41:59
【问题描述】:
我真的不明白为什么下划线链接在暗模式下不显示(仅在移动设备上的某些浏览器上)。
代码真的很简单:
a {
-moz-transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
-webkit-transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
-ms-transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
border-bottom: solid 0.10em rgba(255, 255, 255, 1);
text-decoration: none;
color: inherit;
}
<a href="#"> example </a>
在暗模式下,它在每个桌面浏览器上都能正常工作。 在移动设备上,它适用于 Chromium 和 Firefox。但是在 Brave、Bromite 和 Privacy Browser 上,下划线链接会消失(否则,在浅色模式下它们可以正常工作)。
其他边框也有同样的问题。
带边框的 Firefox 浏览器:
勇敢无边界浏览器:
如果可以的话,我可以发布网站链接。
【问题讨论】:
-
从未听说过那些浏览器。真的有人用过吗?
-
如果你仔细看,边界仍然存在,它们只是非常沉闷
-
将
border-color:#ffffff;设置为备用,因为github.com/brave/browser-laptop/issues/9332 -
@Viira 该特定问题已修复并已关闭,因此不相关
-
好的,那么这个怎么样? css-tricks.com/rgba-browser-support
标签: html css underline darkmode