文本/链接

12种风格时尚价格表界面设计

阿里云


这是一款构思新颖的时尚价格表界面设计效果。价格表是网站为用于提供数字化服务的必要组件。这组价格表设计方案共有 12 种不同的效果,它们都是基于 flexbox 来制作的。

HTML 结构

所有价格表的主要的 HTML 结构如下:

也想出现在这里?联系我们
创客主机
  1. <div class="pricing pricing--sonam">
  2.   <div class="pricing__item">
  3.     <h3 class="pricing__title">Startup</h3>
  4.     <div class="pricing__price"><span class="pricing__currency">$</span>9.90</div>
  5.     <p class="pricing__sentence">Small business solution</p>
  6.     <ul class="pricing__feature-list">
  7.       <li class="pricing__feature">Unlimited calls</li>
  8.       <li class="pricing__feature">Free hosting</li>
  9.       <li class="pricing__feature">40MB of storage space</li>
  10.     </ul>
  11.     <button class="pricing__action">Choose plan</button>
  12.   </div>
  13.   <div class="pricing__item">
  14.     <h3 class="pricing__title">Standard</h3>
  15.     <div class="pricing__price"><span class="pricing__currency">$</span>29,90</div>
  16.     <p class="pricing__sentence">Medium business solution</p>
  17.     <ul class="pricing__feature-list">
  18.       <li class="pricing__feature">Unlimited calls</li>
  19.       <li class="pricing__feature">Free hosting</li>
  20.       <li class="pricing__feature">10 hours of support</li>
  21.       <li class="pricing__feature">Social media integration</li>
  22.       <li class="pricing__feature">1GB of storage space</li>
  23.     </ul>
  24.     <button class="pricing__action">Choose plan</button>
  25.   </div>
  26.   <div class="pricing__item">
  27.     <h3 class="pricing__title">Professional</h3>
  28.     <div class="pricing__price"><span class="pricing__currency">$</span>59,90</div>
  29.     <p class="pricing__sentence">Gigantic business solution</p>
  30.     <ul class="pricing__feature-list">
  31.       <li class="pricing__feature">Unlimited calls</li>
  32.       <li class="pricing__feature">Free hosting</li>
  33.       <li class="pricing__feature">Unlimited hours of support</li>
  34.       <li class="pricing__feature">Social media integration</li>
  35.       <li class="pricing__feature">Anaylitcs integration</li>
  36.       <li class="pricing__feature">Unlimited storage space</li>
  37.     </ul>
  38.     <button class="pricing__action">Choose plan</button>
  39.   </div>
  40. </div>

CSS 样式

所有价格表布局的通用 CSS 样式如下:

  1. .pricing {
  2.   display: flex;
  3.   flex-wrap: wrap;
  4.   justify-content: center;
  5.   width: 100%;
  6.   margin: 0 auto 3em;
  7. }
  8.  
  9. .pricing__item {
  10.   position: relative;
  11.   display: flex;
  12.   flex-direction: column;
  13.   align-items: stretch;
  14.   text-align: center;
  15.   flex: 0 1 330px;
  16. }
  17.  
  18. .pricing__feature-list {
  19.   text-align: left;
  20. }
  21.  
  22. .pricing__action {
  23.   color: inherit;
  24.   border: none;
  25.   background: none;
  26. }
  27.  
  28. .pricing__action:focus {
  29.   outline: none;
  30. }

这些价格表的布局主要使用 flexbox,请注意这个 CSS 属性是一个新的 CSS3 属性,只有最新版本的现代浏览器才支持这个属性。下面是示例 Sonam 的主要代码:

  1. /* Sonam */
  2. .pricing--sonam .pricing__item {
  3.   margin: 1.5em;
  4.   padding: 2em;
  5.   cursor: default;
  6.   border-radius: 10px;
  7.   background: #1F1F1F;
  8.   box-shadow: 0 5px 20px rgba(0,0,0,0.05), 0 15px 30px -10px rgba(0,0,0,0.3);
  9.   transition: background 0.3s;
  10. }
  11.  
  12. .pricing--sonam .pricing__item:hover {
  13.   background: #141315;
  14. }
  15.  
  16. .pricing--sonam .pricing__title {
  17.   font-size: 2em;
  18.   width: 100%;
  19.   margin: 0 0 0.25em;
  20.   padding: 0 0 0.5em;
  21.   border-bottom: 3px solid rgb(27, 26, 28);
  22. }
  23.  
  24. .pricing--sonam .pricing__price {
  25.   color: #E06060;
  26.   font-size: 1.75em;
  27.   padding: 1em 0 0.75em;
  28. }
  29.  
  30. .pricing--sonam .pricing__sentence {
  31.   font-weight: bold;
  32. }
  33.  
  34. .pricing--sonam .pricing__feature-list {
  35.   margin: 0;
  36.   padding: 1em 1.25em 2em;
  37. }
  38.  
  39. .pricing--sonam .pricing__action {
  40.   font-weight: bold;
  41.   margin-top: auto;
  42.   padding: 0.75em 2em;
  43.   border-radius: 5px;
  44.   background: #E06060;
  45.   transition: background 0.3s;
  46. }
  47.  
  48. .pricing--sonam .pricing__action:hover,
  49. .pricing--sonam .pricing__action:focus {
  50.   background: #BD3C3C;
  51. }

12 种风格时尚价格表界面设计

已有 550 人购买
查看演示升级 VIP立刻购买

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

发表回复

热销模板

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

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