我发现很难遵循 Android WebView 文档。例如,setMinimumLogicalFontSize
和 setMinimumFontSize
有什么区别?
根据文档:
setMinimumLogicalFontSize:
设置最小逻辑字体大小。默认值为 8。
setMinimumFontSize
:设置最小字体大小。默认值为 8。
基本上,它什么也没说,我不知道什么是字体大小,什么是逻辑字体大小。
谁能解释一下意思?
最佳答案
我找到的解释不是针对 android 的,而是针对 iOS 的。我认为这是同一回事:
The minimum logical font size is the smallest font size that will display in a web view when the content’s font size is imprecisely specified. This includes content with logical sizes (such as small) or with a font size specified as a percentage of the default.
和
minimumFontSize
This sets the minimum display font size for the web view, overriding all content-specified styles, including explicitly specified font sizes.
关于android - 看不懂 Android WebView 文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52943595/