简体   繁体   English

如何使字体大小小于浏览器的最小默认值?

[英]How to make the font size smaller than the browser's minimum default?

I have an element with a font size that dynamically changes.我有一个字体大小会动态变化的元素。

The issue is that most browser's limit the font size to 6px and some even 9px .问题是大多数浏览器将字体大小限制为6px甚至9px

This can be found by the following flag: chrome://settings/fonts可以通过以下标志找到它: chrome://settings/fonts

Is there a way to make an element's font size below the minimum, without telling the user to change their browser's minimum.有没有一种方法可以使元素的字体大小小于最小字体大小,而无需告诉用户更改其浏览器的最小字体大小。

I have considered using transform: scale(x) - but how do I go about scaling an element down from 9px (browser minimum in this case) and have it look like the target 4px (in this example)?我已经考虑过使用transform: scale(x) -但是如何将元素从9px缩小(在这种情况下为最小浏览器),并使它看起来像目标4px (在此示例中)?

I have an element with a font size that dynamically changes.我有一个字体大小会动态变化的元素。

The issue is that most browser's limit the font size to 6px and some even 9px .问题是大多数浏览器将字体大小限制为6px甚至9px

This can be found by the following flag: chrome://settings/fonts可以通过以下标志找到它: chrome://settings/fonts

Is there a way to make an element's font size below the minimum, without telling the user to change their browser's minimum.有没有一种方法可以使元素的字体大小小于最小字体大小,而无需告诉用户更改其浏览器的最小字体大小。

I have considered using transform: scale(x) - but how do I go about scaling an element down from 9px (browser minimum in this case) and have it look like the target 4px (in this example)?我已经考虑过使用transform: scale(x) -但是如何将元素从9px缩小(在这种情况下为最小浏览器),并使它看起来像目标4px (在此示例中)?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM