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/