【问题标题】:html: max function in font-size doesn't workhtml:字体大小中的 max 函数不起作用
【发布时间】:2019-05-17 19:39:54
【问题描述】:

谁能告诉我这段代码有什么问题:

<p id="text" style="font-size: max(6vh, 6vw);" />

html 检查显示无效值。为什么这不起作用?

【问题讨论】:

标签: html css


【解决方案1】:

max() 是实验性的,仅适用于 Safari

请参阅 MDN 上的文档:max() #Browser Compatibility

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-26
    • 2014-04-29
    • 1970-01-01
    • 1970-01-01
    • 2021-08-21
    相关资源
    最近更新 更多