表单/表格

纯CSS3时尚价格表设计效果

阿里云


这是一款使用纯 CSS3 制作的时尚价格表。该价格表通过 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.                     <h3 class="heading">Standard</h3>
  7.                     <span class="price-value">
  8.                         <span class="currency">$</span> 10
  9.                         <span class="month">/mo</span>
  10.                     </span>
  11.                 </div>
  12.                 <div class="pricing-content">
  13.                     <ul>
  14.                         <li>50GB Disk Space</li>
  15.                         <li>50 Email Accounts</li>
  16.                         <li>50GB Monthly Bandwidth</li>
  17.                         <li>10 Subdomains</li>
  18.                         <li>15 Domains</li>
  19.                     </ul>
  20.                     <a href="#" class="read">sign up</a>
  21.                 </div>
  22.             </div>
  23.         </div>
  24.  
  25.         <div class="col-md-3 col-sm-6">
  26.             <div class="pricingTable">
  27.                 <div class="pricingTable-header">
  28.                     <h3 class="heading">Business</h3>
  29.                     <span class="price-value">
  30.                         <span class="currency">$</span> 20
  31.                         <span class="month">/mo</span>
  32.                     </span>
  33.                 </div>
  34.                 <div class="pricing-content">
  35.                     <ul>
  36.                         <li>60GB Disk Space</li>
  37.                         <li>60 Email Accounts</li>
  38.                         <li>60GB Monthly Bandwidth</li>
  39.                         <li>15 Subdomains</li>
  40.                         <li>20 Domains</li>
  41.                     </ul>
  42.                     <a href="#" class="read">sign up</a>
  43.                 </div>
  44.             </div>
  45.         </div>
  46.     </div>
  47. </div>

CSS 样式

完成该价格表的所有 CSS 代码如下:

  1. .pricingTable{
  2.       text-align: center;
  3.   }
  4.   .pricingTable .pricingTable-header{
  5.       padding: 30px 0;
  6.       background: #4d4d4d;
  7.       position: relative;
  8.       transition: all 0.3s ease 0s;
  9.   }
  10.   .pricingTable:hover .pricingTable-header{
  11.       background: #09b2c6;
  12.   }
  13.   .pricingTable .pricingTable-header:before,
  14.   .pricingTable .pricingTable-header:after{
  15.       content: "";
  16.       width: 16px;
  17.       height: 16px;
  18.       border-radius: 50%;
  19.       border: 1px solid #d9d9d8;
  20.       position: absolute;
  21.       bottom: 12px;
  22.   }
  23.   .pricingTable .pricingTable-header:before{
  24.       left: 40px;
  25.   }
  26.   .pricingTable .pricingTable-header:after{
  27.       right: 40px;
  28.   }
  29.   .pricingTable .heading{
  30.       font-size: 20px;
  31.       color: #fff;
  32.       text-transform: uppercase;
  33.       letter-spacing: 2px;
  34.       margin-top: 0;
  35.   }
  36.   .pricingTable .price-value{
  37.       display: inline-block;
  38.       position: relative;
  39.       font-size: 55px;
  40.       font-weight: bold;
  41.       color: #09b1c5;
  42.       transition: all 0.3s ease 0s;
  43.   }
  44.   .pricingTable:hover .price-value{
  45.       color: #fff;
  46.   }
  47.   .pricingTable .currency{
  48.       font-size: 30px;
  49.       font-weight: bold;
  50.       position: absolute;
  51.       top: 6px;
  52.       left: -19px;
  53.   }
  54.   .pricingTable .month{
  55.       font-size: 16px;
  56.       color: #fff;
  57.       position: absolute;
  58.       bottom: 15px;
  59.       right: -30px;
  60.       text-transform: uppercase;
  61.   }
  62.   .pricingTable .pricing-content{
  63.       padding-top: 50px;
  64.       background: #fff;
  65.       position: relative;
  66.   }
  67.   .pricingTable .pricing-content:before,
  68.   .pricingTable .pricing-content:after{
  69.       content: "";
  70.       width: 16px;
  71.       height: 16px;
  72.       border-radius: 50%;
  73.       border: 1px solid #7c7c7c;
  74.       position: absolute;
  75.       top: 12px;
  76.   }
  77.   .pricingTable .pricing-content:before{
  78.       left: 40px;
  79.   }
  80.   .pricingTable .pricing-content:after{
  81.       right: 40px;
  82.   }
  83.   .pricingTable .pricing-content ul{
  84.       padding: 0 20px;
  85.       margin: 0;
  86.       list-style: none;
  87.   }
  88.   .pricingTable .pricing-content ul:before,
  89.   .pricingTable .pricing-content ul:after{
  90.       content: "";
  91.       width: 8px;
  92.       height: 46px;
  93.       border-radius: 3px;
  94.       background: linear-gradient(to bottom,#818282 50%,#727373 50%);
  95.       position: absolute;
  96.       top: -22px;
  97.       z-index: 1;
  98.       box-shadow: 0 0 5px #707070;
  99.       transition: all 0.3s ease 0s;
  100.   }
  101.   .pricingTable:hover .pricing-content ul:before,
  102.   .pricingTable:hover .pricing-content ul:after{
  103.       background: linear-gradient(to bottom, #40c4db 50%, #34bacc 50%);
  104.   }
  105.   .pricingTable .pricing-content ul:before{
  106.       left: 44px;
  107.   }
  108.   .pricingTable .pricing-content ul:after{
  109.       right: 44px;
  110.   }
  111.   .pricingTable .pricing-content ul li{
  112.       font-size: 15px;
  113.       font-weight: bold;
  114.       color: #777473;
  115.       padding: 10px 0;
  116.       border-bottom: 1px solid #d9d9d8;
  117.   }
  118.   .pricingTable .pricing-content ul li:last-child{
  119.       border-bottom: none;
  120.   }
  121.   .pricingTable .read{
  122.       display: inline-block;
  123.       font-size: 16px;
  124.       color: #fff;
  125.       text-transform: uppercase;
  126.       background: #d9d9d8;
  127.       padding: 8px 25px;
  128.       margin: 30px 0;
  129.       transition: all 0.3s ease 0s;
  130.   }
  131.   .pricingTable .read:hover{
  132.       text-decoration: none;
  133.   }
  134.   .pricingTable:hover .read{
  135.       background: #09b1c5;
  136.   }
  137.   @media screen and (max-width: 990px){
  138.       .pricingTable{ margin-bottom: 25px; }
  139.   }

纯 CSS3 时尚价格表设计效果

已有 440 人购买
  • jm3j
查看演示升级 VIP立刻购买

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

发表回复

热销模板

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

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