引导转盘-如何制作到特定幻灯片的外部链接

Bootstrap carousel - How to make a external link to a specific slide

本文关键字:幻灯片 链接 外部 何制作      更新时间:2023-09-26

也许我没有用正确的词,因为我对引导程序完全陌生,但我无法做到这一点。。。我有一个html文档,代码是:

<div class="item" id="screen_1_1">
          <h2>1. Title</h2>
          <h3>Definition</h3>
          <p>content</p>
    </div>
<div class="item" id="screen_1_2">
          <h2>2. Title</h2>
          <h3>Definition</h3>
          <p>content</p>
    </div>

所以,我想问,我如何从另一个网站链接到这个网站并直接打开它,例如,看到第二张幻灯片?这可能吗?

尝试这个

<!-- first slide -->
<div class="item" id="screen_1_1">
      <h2>1. Title</h2>
      <h3>Definition</h3>
      <p>content</p>
</div>
<!-- second slide -->
<div class="item" id="screen_1_2" onClick="javascript:location.href='http://www.google.it/'">
      <h2>2. Title</h2>
      <h3>Definition</h3>
      <p>content</p>
</div>