样式属性是否影响 50k css 限制
Do style attributes contribute to the 50k css limit
在 amp 页面中,我知道 css 允许有 50k 的限制(在头部的样式标签之间)。我想知道内联样式 属性 是否也会影响大小?
我在文档中的任何地方都找不到这个
最大尺寸
如果作者样式表或内联样式加在一起大于 75,000 字节,则为验证错误。 For more infomation click here
注意:内联样式的每个实例都有 1,000 字节的限制。
documentation 中指出:
The AMP validator throws this error when it measures the size of the
styles content within <style amp-custom>
to exceed the 75,000 bytes
limit.
在 amp 页面中,我知道 css 允许有 50k 的限制(在头部的样式标签之间)。我想知道内联样式 属性 是否也会影响大小?
我在文档中的任何地方都找不到这个
最大尺寸
如果作者样式表或内联样式加在一起大于 75,000 字节,则为验证错误。 For more infomation click here
注意:内联样式的每个实例都有 1,000 字节的限制。
documentation 中指出:
The AMP validator throws this error when it measures the size of the styles content within
<style amp-custom>
to exceed the 75,000 bytes limit.