简体   繁体   English

带有过滤器和fancybox的HTML产品

[英]HTML Portfolio with filter and fancybox

My problem is this: I have created a portfolio on the website, but I want that when I go on the portfolio section through the navbar menu, the filter button is already active, I don't want all the image on the screen. 我的问题是:我已经在网站上创建了一个投资组合,但是我希望当我通过导航栏菜单进入投资组合部分时,过滤器按钮已经处于活动状态,我不希望屏幕上的所有图像。 This is my code for the filter and for the fancybox. 这是我的过滤器和fancybox代码。

This is the code for the button and for the filter 这是按钮和过滤器的代码

<button class="btn btn-default filter-button" data-filter="impiantistica">Impiantistica</button>

This is the code for the fancybox 这是fancybox的代码

  <div class="gallery_product col-lg-4 col-md-4 col-sm-4 col-xs-6 filter impiantistica" >
     <img src="immagini/servizi/impiantistica-01.jpg" class="img-responsive fancybox round-5" href="immagini/servizi/impiantistica-01.jpg" data-fancybox-group="Impiantistica" width="95%">
  </div>

This is the portfolio's link https://adrgeneralcontract.com/new/portfolio.html 这是投资组合的链接https://adrgeneralcontract.com/new/portfolio.html

Thanks! 谢谢!

Add this to your css file 将此添加到您的css文件

.gallery_product { display: none; }
.gallery_product.impiantistica { display: block; }

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

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