fonts - CSS 文本阴影 1px 视网膜

标签 fonts retina-display css

CSS 在视网膜屏幕上将 1px 文本阴影加倍为 2px。我只需要 1px。任何解决方案? 0.5px 无效。

最佳答案

我没有尝试过文本阴影,也没有方便的视网膜屏幕,但是对于框阴影 MDN说对于传播半径:

"Positive values will cause the shadow to expand and grow bigger, negative values will cause the shadow to shrink. If not specified, it will be 0 (the shadow will be the same size as the element)"

这意味着您可以使用:

box-shadow: 0 1px 1px -1px rgba(0, 0, 0, .5);

例如。

正如我所说,我还没有尝试过文本阴影,但我怀疑它应该可以正常工作。

关于fonts - CSS 文本阴影 1px 视网膜,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12144521/

相关文章:

python - 在 Ubuntu 上安装 Arial 并在 Python 中使用

iphone - UIButton图像和视网膜显示

ios - 如果我必须下载 image.png 和 image@2x.png 从服务器上传到哪里?

html - Accordion 切换折叠不按预期工作

html - 根据左 DIV 高度垂直对齐右 DIV

javascript - jQuery 日期范围选择器在 Firefox 和 Edge 中不起作用

python - 使用 python 将数据复制并粘贴到 Excel 中(保留源格式)

fonts - Truetype ttf 字体和位图表示

canvas - 使 QtQuick 2 的 Canvas 元素 HiDPI-(retina-) 感知需要什么?

python - Matplotlib 报告字体系列 'serif' 未找到