基于Bootstrap漂亮簡潔的CSS3價格表(附源碼下載)
這是一款漂亮簡潔的CSS3價格表樣式,該價格表基于Bootstrap網(wǎng)格系統(tǒng)來進行布局,通過簡單的CSS3代碼來美化價格表,樣式非常的時尚漂亮,且能在不同屏幕下展示良好的效果。
HTML
首先在頁面中引入bootstrap.min.css文件,這里我用官方的CDN資源,你也可以下載到本地使用。
<link rel="stylesheet" rel="external nofollow" >
該css3價格表的HTML結(jié)構(gòu)如下:
<div class="container"> <div class="row"> <div class="col-md-4 col-sm-6"> <div class="pricingTable"> <h3 class="title">Standard</h3> <div class="price-value"> <span class="month">per month</span> <span class="amount"> <span class="currency">$</span> 10 <span class="value">99</span> </span> </div> <ul class="pricing-content"> <li>50GB Disk Space</li> <li>50 Email Accounts</li> <li>50GB Monthly Bandwidth</li> <li>10 Subdomains</li> <li>15 Domains</li> </ul> <a href="#" rel="external nofollow" rel="external nofollow" class="pricingTable-signup">sign up</a> </div> </div> <div class="col-md-4 col-sm-6"> <div class="pricingTable"> <h3 class="title">Business</h3> <div class="price-value"> <span class="month">per month</span> <span class="amount"> <span class="currency">$</span> 20 <span class="value">99</span> </span> </div> <ul class="pricing-content"> <li>60GB Disk Space</li> <li>60 Email Accounts</li> <li>60GB Monthly Bandwidth</li> <li>15 Subdomains</li> <li>20 Domains</li> </ul> <a href="#" rel="external nofollow" rel="external nofollow" class="pricingTable-signup">sign up</a> </div> </div> </div> </div>
CSS3
為該價格表添加下面的CSS樣式來進行渲染和美化。
.pricingTable{ text-align: center; background: #fff; padding: 30px 0; } .pricingTable .title{ font-size: 22px; font-weight: 600; color: #2e282a; text-transform: uppercase; margin: 0 0 30px 0; } .pricingTable .price-value{ padding: 30px 0; background: #ba5289; margin-bottom: 30px; position: relative; } .pricingTable .price-value:before{ content: ""; border-top: 15px solid #fff; border-left: 15px solid transparent; border-right: 15px solid transparent; position: absolute; top: 0; left: 46%; } .pricingTable .month{ display: block; height: 50px; font-size: 15px; font-weight: 900; color: #fff; text-transform: uppercase; } .pricingTable .amount{ display: inline-block; font-size: 50px; color: #fff; position: relative; } .pricingTable .currency{ position: absolute; top: -1px; left: -35px; } .pricingTable .value{ font-size: 20px; position: absolute; top: -11px; right: -27px; } .pricingTable .pricing-content{ padding: 0; margin: 0 0 30px 0; list-style: none; } .pricingTable .pricing-content li{ font-size: 16px; color: #868686; line-height: 35px; } .pricingTable .pricingTable-signup{ display: inline-block; padding: 8px 40px; background: #fca4a7; font-size: 15px; font-weight: 600; color: #fff; text-transform: capitalize; border: 2px solid #fca4a7; border-radius: 30px; transition: all 0.5s ease 0s; } .pricingTable .pricingTable-signup:hover{ background: #fff; color: #fca4a7; } @media only screen and (max-width: 990px){ .pricingTable{ margin-bottom: 30px; } }
現(xiàn)在你可以打開瀏覽器看看效果了,手機上效果也不錯的。
以上所述是小編給大家介紹的基于Bootstrap漂亮簡潔的CSS3價格表(附源碼下載),希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
相關(guān)文章
JavaScript中數(shù)據(jù)結(jié)構(gòu)與算法(二):隊列
這篇文章主要介紹了JavaScript中數(shù)據(jù)結(jié)構(gòu)與算法(二):隊列,隊列是只允許在一端進行插入操作,另一個進行刪除操作的線性表,隊列是一種先進先出(First-In-First-Out,F(xiàn)IFO)的數(shù)據(jù)結(jié)構(gòu),需要的朋友可以參考下2015-06-06JavaScript+html5 canvas繪制繽紛多彩的三角形效果完整實例
這篇文章主要介紹了JavaScript+html5 canvas繪制繽紛多彩的三角形效果,以完整實例形式分析了html5的canvas繪制圖形的相關(guān)技巧,需要的朋友可以參考下2016-01-01javascript作用域鏈(Scope Chain)用法實例解析
這篇文章主要介紹了javascript作用域鏈(Scope Chain)用法,結(jié)合實例形式較為詳細的分析了javascript作用域鏈(Scope Chain)的概念、功能與相關(guān)使用技巧,具有一定參考借鑒價值,需要的朋友可以參考下2015-11-11js 異步操作回調(diào)函數(shù)如何控制執(zhí)行順序
本文為大家講解下js異步操作時回調(diào)函數(shù)如何控制執(zhí)行順序,感興趣的朋友可以參考下2013-12-12JavaScript函數(shù)調(diào)用經(jīng)典實例代碼
JavaScript提供了4種函數(shù)調(diào)用,一般形式的函數(shù)調(diào)用、作為對象的方法調(diào)用、使用 call 和 apply 動態(tài)調(diào)用、使用 new 間接調(diào)用,下面這篇文章主要給大家介紹了關(guān)于JavaScript函數(shù)調(diào)用的相關(guān)資料,需要的朋友可以參考下2021-12-12