简体   繁体   English

AMP:使用amp-sidebar CSS属性

[英]AMP: using amp-sidebar CSS attribute

I am using amp side-bar. 我正在使用amp侧边栏。 it has the CSS attribute of "width:80vw;"I would like to expand the width. 它的CSS属性为“ width:80vw;”,我想扩展宽度。 how can I do that? 我怎样才能做到这一点? I have issues with the "important" attribute in the CSS 我在CSS中的“重要”属性有问题

Amp Sidebar has an id as sidebar. Amp补充工具栏有一个ID作为补充工具栏。 Just change that width and leave max-width as it is. 只需更改该宽度,并保持max-width不变即可。 Also by doing so it will not show any error in amp validator. 同样,这样做也不会在放大器验证器中显示任何错误。

#sidebar {
    width: 500px;
}

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

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