2

假设我有 3 个 Web 故事要嵌入到一个网页中,并且我希望在一个查看器中包含多个 Web 故事。我会用

<amp-story-player style="width: 360px; height: 600px;">
    <a href="https://www.example.com/story1.html" style="--story-player-poster: url('https://www.example.com/assets/cover1.html');">
        Story 1.
    </a>
    <a href="https://www.example.com/story2.html" style="--story-player-poster: url('https://www.example.com/assets/cover2.html');">
        Story 2 **Want to activate this story initially**
    </a>
    <a href="https://www.example.com/story3.html" style="--story-player-poster: url('https://www.example.com/assets/cover3.html');">
        Story 3
    </a>
</amp-story-player>

但最初这会在 amp-story-player 在页面上呈现时激活 Story 1。

那么,有什么方法可以初始激活故事 2 吗?

如果想查看故事 1/故事 3,用户将向左/向右滑动

谢谢

4

0 回答 0