AMP HTML 上是否允许 div 样式?
Is div styling allowed on AMP HTML?
所以我在试验 AMP 时注意到
<div style="font-size:xx-small;color:white;"></div>
被接受为常规 AMP。 (使用 Google AMP 测试仪测试)
现在我认为只有 amp-custom 样式在 AMP 上有效。
我应该保留 div 样式还是 AMP 测试器未检测到的奇怪的东西,这将使我的 AMP 模板稍后无效。
PS。我知道这种样式不合适,最好用 css 样式,但原则上只是徘徊。谢谢
是
Google 的第一个结果:
Styles may live in the head of the document or as inline style attributes...
所以我在试验 AMP 时注意到
<div style="font-size:xx-small;color:white;"></div>
被接受为常规 AMP。 (使用 Google AMP 测试仪测试)
现在我认为只有 amp-custom 样式在 AMP 上有效。
我应该保留 div 样式还是 AMP 测试器未检测到的奇怪的东西,这将使我的 AMP 模板稍后无效。
PS。我知道这种样式不合适,最好用 css 样式,但原则上只是徘徊。谢谢
是
Google 的第一个结果:
Styles may live in the head of the document or as inline style attributes...