<pre> fit in AMP? What if use <amp-fit> instead of <pre>?

时间:2018-09-19 08:16:25

标签: web

I am changing my website code to complete AMP design, as we know there are variously limited specifies tags in AMP, so here I am confused with the tag. It works fine on local output. I am confused by this tag using in AMP. Is there any other tag to replace it?

1 个答案:

答案 0 :(得分:0)

您最好的办法是使用online amp-validator。它将指出您是否违反任何AMP特定规则。如果您正在服务器(本地/远程)上运行页面,则可以通过在浏览器中的URL末尾附加#development=1来执行amp验证。这将在浏览器控制台上显示验证日志。

在此处了解更多信息:validating amp pages