布局框架

基于Bootstrap精美商品价格表设计

阿里云


这是一款基于 Bootstrap 网格系统制作的精美价格表效果。该价格表效果时尚大方,在鼠标滑过价格表时,当前价格表会有变色和放大的动画特效。

HTML 结构

该价格表的 HTML 结构如下:

也想出现在这里?联系我们
创客主机
  1. <div class="container">
  2.       <div class="row">
  3.           <div class="col-md-3 col-sm-6">
  4.               <div class="pricingTable">
  5.                   <div class="pricingTable-header">
  6.                       <i class="fa fa-adjust"></i>
  7.                       <div class="price-value"> $10.00 <span class="month">per month</span> </div>
  8.                   </div>
  9.                   <h3 class="heading">Standard</h3>
  10.                   <div class="pricing-content">
  11.                       <ul>
  12.                           <li><b>50GB</b> Disk Space</li>
  13.                           <li><b>50</b> Email Accounts</li>
  14.                           <li><b>50GB</b> Monthly Bandwidth</li>
  15.                           <li><b>10</b> subdomains</li>
  16.                           <li><b>15</b> Domains</li>
  17.                       </ul>
  18.                   </div>
  19.                   <div class="pricingTable-signup">
  20.                       <a href="#">sign up</a>
  21.                   </div>
  22.               </div>
  23.           </div>
  24.           ......
  25.       </div>
  26.   </div>

CSS 样式

价格表的 CSS3 样式如下:

  1. .pricingTable{
  2.     text-align: center;
  3.     background: #fff;
  4.     margin: 0 -15px;
  5.     box-shadow: 0 0 10px #ababab;
  6.     padding-bottom: 40px;
  7.     border-radius: 10px;
  8.     color: #cad0de;
  9.     transform: scale(1);
  10.     transition: all 0.5s ease 0s;
  11. }
  12.  
  13. .pricingTable:hover{
  14.     transform: scale(1.05);
  15.     z-index: 1;
  16. }
  17.  
  18. .pricingTable .pricingTable-header{
  19.     padding: 40px 0;
  20.     background: #f5f6f9;
  21.     border-radius: 10px 10px 50% 50%;
  22.     transition: all 0.5s ease 0s;
  23. }
  24.  
  25. .pricingTable:hover .pricingTable-header{
  26.     background: #ff9624;
  27. }
  28.  
  29. .pricingTable .pricingTable-header i{
  30.     font-size: 50px;
  31.     color: #858c9a;
  32.     margin-bottom: 10px;
  33.     transition: all 0.5s ease 0s;
  34. }
  35.  
  36. .pricingTable .price-value{
  37.     font-size: 35px;
  38.     color: #ff9624;
  39.     transition: all 0.5s ease 0s;
  40. }
  41.  
  42. .pricingTable .month{
  43.     display: block;
  44.     font-size: 14px;
  45.     color: #cad0de;
  46. }
  47.  
  48. .pricingTable:hover .pricingTable-header i,
  49. .pricingTable:hover .price-value,
  50. .pricingTable:hover .month{
  51.     color: #fff;
  52. }
  53.  
  54. .pricingTable .heading{
  55.     font-size: 24px;
  56.     color: #ff9624;
  57.     margin-bottom: 20px;
  58.     text-transform: uppercase;
  59. }
  60.  
  61. .pricingTable .pricing-content ul{
  62.     list-style: none;
  63.     padding: 0;
  64.     margin-bottom: 30px;
  65. }
  66.  
  67. .pricingTable .pricing-content ul li{
  68.     line-height: 30px;
  69.     color: #a7a8aa;
  70. }
  71.  
  72. .pricingTable .pricingTable-signup a{
  73.     display: inline-block;
  74.     font-size: 15px;
  75.     color: #fff;
  76.     padding: 10px 35px;
  77.     border-radius: 20px;
  78.     background: #ffa442;
  79.     text-transform: uppercase;
  80.     transition: all 0.3s ease 0s;
  81. }
  82.  
  83. .pricingTable .pricingTable-signup a:hover{
  84.     box-shadow: 0 0 10px #ffa442;
  85. }
  86.  
  87. .pricingTable.blue .price-value,
  88. .pricingTable.blue .heading{
  89.     color: #4b64ff;
  90. }
  91.  
  92. .pricingTable.blue:hover .pricingTable-header,
  93. .pricingTable.blue .pricingTable-signup a{
  94.     background: #4b64ff;
  95. }
  96.  
  97. .pricingTable.blue .pricingTable-signup a:hover{
  98.     box-shadow: 0 0 10px #4b64ff;
  99. }
  100.  
  101. .pricingTable.red .price-value,
  102. .pricingTable.red .heading{
  103.     color: #ff4b4b;
  104. }
  105.  
  106. .pricingTable.red:hover .pricingTable-header,
  107. .pricingTable.red .pricingTable-signup a{
  108.     background: #ff4b4b;
  109. }
  110.  
  111. .pricingTable.red .pricingTable-signup a:hover{
  112.     box-shadow: 0 0 10px #ff4b4b;
  113. }
  114.  
  115. .pricingTable.green .price-value,
  116. .pricingTable.green .heading{
  117.     color: #40c952;
  118. }
  119.  
  120. .pricingTable.green:hover .pricingTable-header,
  121. .pricingTable.green .pricingTable-signup a{
  122.     background: #40c952;
  123. }
  124.  
  125. .pricingTable.green .pricingTable-signup a:hover{
  126.     box-shadow: 0 0 10px #40c952;
  127. }
  128.  
  129. .pricingTable.blue:hover .price-value,
  130. .pricingTable.red:hover .price-value,
  131. .pricingTable.green:hover .price-value{
  132.     color: #fff;
  133. }
  134.  
  135. @media screen and (max-width: 990px){
  136.     .pricingTable{ margin: 0 0 20px 0; }
  137. }

基于 Bootstrap 精美商品价格表设计

已有 521 人购买
  • zcgx
查看演示升级 VIP立刻购买

演示地址 下载地址
收藏
(1)

发表回复

热销模板

Ashade - 作品展示摄影相册WordPress汉化主题
LensNews

本站承接 WordPress / PbootCMS / DedeCMS 等
系统建站、仿站、开发、定制等业务!