我正在设计一个基于 Google-AMP 的网页。Google-AMP 有一些限制,!important
不能使用 css 属性。
在 Google-AMP 中,内置样式使用!important
如下属性:
amp-sidebar {
max-width: 80vw!important;
}
在我的场景中,我需要将样式更新max-width
为100vw
. 如何在不使用的情况下更新amp-sidebar
到?100vw
!important
PS:不能使用 JavaScript 或 Inline-CSS。我只需要使用 CSS 进行更改。
这是小提琴..