响应式网格商品展示及加入购物车

所属分类:UI-布局

 17425  245  查看评论 (2)
分享到微信朋友圈
X
响应式网格商品展示及加入购物车 ie兼容9

响应式网格商品展示及加入购物车效果

商品展示网格布局:

商品展示网格布局:

添加要比较的商品界面截图:

添加要比较的商品界面截图:

三种商品详细信息比较的界面:

三种商品详细信息比较的界面:

实现方法

HTML结构

该商品比较的HTML结构如下:

<!-- Compare basket -->
<div class="compare-basket">
  <!-- comparison item miniatures come here -->
  <button class="action action--button action--compare"><i class="fa fa-check"></i><span class="action__text">Compare</span></button>
</div>
<!-- Main view -->
<div class="view">
  <!-- Blueprint header -->
  <header class="bp-header cf"><!-- ... --></header>
  <!-- Product grid -->
  <section class="grid">
    <!-- Products -->
    <div class="product">
      <div class="product__info">
        <img class="product__image" src="images/1.png" alt="Product 1" />
        <h3 class="product__title">Chryseia</h3>
        <span class="product__year extra highlight">2011</span>
        <span class="product__region extra highlight">Douro</span>
        <span class="product__varietal extra highlight">Touriga Nacional</span>
        <span class="product__alcohol extra highlight">13%</span>
        <span class="product__price highlight">$55.90</span>
        <button class="action action--button action--buy">
          <i class="fa fa-shopping-cart"></i>
          <span class="action__text">Add to cart</span>
        </button>
      </div>
      <label class="action action--compare-add">
        <input class="check-hidden" type="checkbox" />
        <i class="fa fa-plus"></i>
        <i class="fa fa-check"></i>
        <span class="action__text action__text--invisible">Add to compare</span>
      </label>
    </div>
    <div class="product">
      <!-- ... -->
    </div>
    <div class="product">
      <!-- ... -->   
    </div>
    <!-- ... --> 
    </section>
</div><!-- /view -->
<!-- product compare wrapper -->
<section class="compare">
  <!-- comparison items come here -->
  <button class="action action--close"><i class="fa fa-remove"></i><span class="action__text action__text--invisible">Close comparison overlay</span></button>
</section>
<script src="js/classie.js"></script>
<script src="js/main.js"></script>

详细的CSS和js文件请参考下载文件。

相关插件-布局

jQuery bootstrap响应式网站模板

jQuery bootstrap响应式网站模板,单页网站简洁大气。
  布局
 27764  363

jQuery响应的HTML主题

jQuery响应的HTML主题完全适合所有类机构网站,企业和商业公司
  布局
 32415  358

sefolio透明风格的单页网站模板

透明风格的单页网站模板
  布局
 38887  537

jQuery bootstrap响应式系统框架

基于bootstrap的一个系统界面,支持相应!有助于分享插件的高亮组合
  布局
 35819  398

讨论这个项目(2)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

    壹起航-建站部设计 0
    2019/8/24 10:04:37
    add to cart没反应,要点加号才行。。。。。
        丶空白0
        2019/12/5 17:18:01
        标签设置下就行了
    回复
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复