【问题标题】:Open a window on the same Site with jQuery使用 jQuery 在同一个站点上打开一个窗口
【发布时间】:2020-04-18 19:23:53
【问题描述】:

对不起我的英语...

我想要的是,当有人单击缩放图标时,它会在站点中打开一个小窗口,并在这个小窗口中描述产品。

图片中的代码

<div class="container-fluid">
    <div class="row">

         <div class="col"> 

          <div class="product-grid">

                <div class="product-image">
                   <a class="link" href="/tachen_&_rucksacke/fenster/mochila_doble_tirantes-violeta.php">
                    <img alt=""  class="bild" src="photo/111.jpg">     
                   </a> 

                </div>

                <div class="product-content">
                     <a class="links" href="/tachen_&_rucksacke/fenster/mochila_doble_tirantes-violeta.php">
                    <p class="title">Mochila doble tirantes Violeta</p>
                    </a>     

                </div>
                    <div class="price">$16.00</div>

                     <div class="div-zoom">

                   <span class="zum-warenkorb">zum warenkorb hinzufügen</span>
                   <i class="fa fa-search-plus" style="font-size: 94%; color: white; background-color:  #595959; padding: 3%;"></i>
                 </div> 
            </div>
        </div>
</div>

Here 是来自站点的代码。

我使用带有网格布局的 Bootstrap 4。

我想要的是,当有人单击缩放图标时,它会在站点中打开一个小窗口,并在这个小窗口中描述产品。

请有人帮助我并用简单的话解释如何用jQuery解决这个问题,谢谢

【问题讨论】:

标签: jquery bootstrap-4


【解决方案1】:

您似乎在寻找模态。 Bootstrap 官方文档对你的工作有清晰详细的指导。按照这个链接。 https://getbootstrap.com/docs/4.4/components/modal/

注意:在使用 Bootstrap modals 之前,您需要在项目中设置 jquerypopper.js。您需要单独下载它们。然后,您可以在项目中本地使用它们,或者如果您不需要下载它们,则使用 CDN。此链接将指导您。 https://getbootstrap.com/docs/4.4/getting-started/download/

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-10-19
  • 2011-02-05
  • 2023-01-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-03-28
相关资源
最近更新 更多