【发布时间】:2018-01-24 11:57:07
【问题描述】:
我正在使用来自AMP Start 的模板。 我使用了 amp-carousel。 下一个图像和上一个图像按钮的箭头图像位于屏幕顶部并且不可见。 我怎样才能解决这个问题? image one image two
【问题讨论】:
标签: html css templates amp-html
我正在使用来自AMP Start 的模板。 我使用了 amp-carousel。 下一个图像和上一个图像按钮的箭头图像位于屏幕顶部并且不可见。 我怎样才能解决这个问题? image one image two
【问题讨论】:
标签: html css templates amp-html
做以下事情:
.amp-carousel-button .amp-carousel-button-prev {
position: absolute;
top: 50%;
left: 0;
}
.amp-carousel-button .amp-carousel-button-next {
position: absolute;
top: 50%;
right: 0;
}
或者使用以下链接将默认指标替换为自定义指标: https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/amp-carousel.md
【讨论】:
fill='%23FFF' fill-rule='evenodd'
为了不让隐藏箭头尝试在 amp-carousel 中添加 type=slides
【讨论】: