简体   繁体   English

如何最好地将 AMP 转换为 HTML

[英]How best to convert AMP to HTML

If I want to convert a web page from AMP to plain HTML, do I need to change all the amp tags or can I just leave them?如果我想将网页从 AMP 转换为纯 HTML,是否需要更改所有 amp 标签,还是可以保留它们? I assume I'd need to remove it from the Doctype section.我想我需要从 Doctype 部分删除它。 Can I leave amp-animation, amp-img, etc. or do I need to convert everything?我可以保留 amp-animation、amp-img 等,还是需要转换所有内容?

I'm asking this because making an AMP shopping cart and taking payments seemed too difficult and possibly buggy, so I'm switching only the product and payments pages to regular HTML.我之所以这么问是因为制作 AMP 购物车和付款似乎太难了,而且可能有问题,所以我只将产品和付款页面切换到常规 HTML。

Depend on die AMP-tags and what you want in the HTML.取决于 AMP 标签以及您在 HTML 中想要的内容。
If you want to display the Image you must change the amp-img to img.如果要显示图像,必须将 amp-img 更改为 img。
In general amp-html tag are not displayed in html.通常 amp-html 标签不会显示在 html 中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM