如何在AMP页面中替换内联样式?

问题描述 投票:1回答:1

我有一个HTML正文,其中某些标签包含内联样式。通常,我们可以使用!important覆盖内联但是由于我需要页面对AMP有效,因此无法使用此方法。任何使用AMP有效方法执行此操作的方法??

css amp-html
1个回答
3
投票

No。如前所述,在AMP you can not use the !important style中。您也只能拥有!important

您可以内联覆盖常规样式,但不能相反。

AMP必须能够执行其元素大小调整规则,以允许one style tag and it has to be in the head tag样式会对此干扰。

© www.soinside.com 2019 - 2024. All rights reserved.