CSS3 實(shí)現(xiàn)的定價(jià)表
發(fā)布時(shí)間:2021-04-06 16:20:08 作者:Arkev
我要評(píng)論
這篇文章主要介紹了CSS3 實(shí)現(xiàn)定價(jià)表的示例代碼,幫助大家更好的理解和學(xué)習(xí)使用css3,感興趣的朋友可以了解下
實(shí)現(xiàn)效果:

實(shí)現(xiàn)代碼
html
<div id="pricing-table" class="clear">
<div class="plan">
<h3>Enterprise<span>$59</span></h3>
<a class="signup" href="">Sign up</a>
<ul>
<li><b>10GB</b> Disk Space</li>
<li><b>100GB</b> Monthly Bandwidth</li>
<li><b>20</b> Email Accounts</li>
<li><b>Unlimited</b> subdomains</li>
</ul>
</div>
<div class="plan" id="most-popular">
<h3>Professional<span>$29</span></h3>
<a class="signup" href="">Sign up</a>
<ul>
<li><b>5GB</b> Disk Space</li>
<li><b>50GB</b> Monthly Bandwidth</li>
<li><b>10</b> Email Accounts</li>
<li><b>Unlimited</b> subdomains</li>
</ul>
</div>
<div class="plan">
<h3>Standard<span>$17</span></h3>
<a class="signup" href="">Sign up</a>
<ul>
<li><b>3GB</b> Disk Space</li>
<li><b>25GB</b> Monthly Bandwidth</li>
<li><b>5</b> Email Accounts</li>
<li><b>Unlimited</b> subdomains</li>
</ul>
</div>
<div class="plan">
<h3>Basic<span>$9</span></h3>
<a class="signup" href="">Sign up</a>
<ul>
<li><b>1GB</b> Disk Space</li>
<li><b>10GB</b> Monthly Bandwidth</li>
<li><b>2</b> Email Accounts</li>
<li><b>Unlimited</b> subdomains</li>
</ul>
</div>
</div>
css3
body{
background: #303030;
}
#pricing-table {
margin: 100px auto;
text-align: center;
width: 892px; /* total computed width = 222 x 3 + 226 */
}
#pricing-table .plan {
font: 12px 'Lucida Sans', 'trebuchet MS', Arial, Helvetica;
text-shadow: 0 1px rgba(255,255,255,.8);
background: #fff;
border: 1px solid #ddd;
color: #333;
padding: 20px;
width: 180px; /* plan width = 180 + 20 + 20 + 1 + 1 = 222px */
float: left;
position: relative;
}
#pricing-table #most-popular {
z-index: 2;
top: -13px;
border-width: 3px;
padding: 30px 20px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 20px 0 10px -10px rgba(0, 0, 0, .15), -20px 0 10px -10px rgba(0, 0, 0, .15);
-webkit-box-shadow: 20px 0 10px -10px rgba(0, 0, 0, .15), -20px 0 10px -10px rgba(0, 0, 0, .15);
box-shadow: 20px 0 10px -10px rgba(0, 0, 0, .15), -20px 0 10px -10px rgba(0, 0, 0, .15);
}
#pricing-table .plan:nth-child(1) {
-moz-border-radius: 5px 0 0 5px;
-webkit-border-radius: 5px 0 0 5px;
border-radius: 5px 0 0 5px;
}
#pricing-table .plan:nth-child(4) {
-moz-border-radius: 0 5px 5px 0;
-webkit-border-radius: 0 5px 5px 0;
border-radius: 0 5px 5px 0;
}
/* --------------- */
#pricing-table h3 {
font-size: 20px;
font-weight: normal;
padding: 20px;
margin: -20px -20px 50px -20px;
background-color: #eee;
background-image: -moz-linear-gradient(#fff,#eee);
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
background-image: -webkit-linear-gradient(#fff, #eee);
background-image: -o-linear-gradient(#fff, #eee);
background-image: -ms-linear-gradient(#fff, #eee);
background-image: linear-gradient(#fff, #eee);
}
#pricing-table #most-popular h3 {
background-color: #ddd;
background-image: -moz-linear-gradient(#eee,#ddd);
background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ddd));
background-image: -webkit-linear-gradient(#eee, #ddd);
background-image: -o-linear-gradient(#eee, #ddd);
background-image: -ms-linear-gradient(#eee, #ddd);
background-image: linear-gradient(#eee, #ddd);
margin-top: -30px;
padding-top: 30px;
-moz-border-radius: 5px 5px 0 0;
-webkit-border-radius: 5px 5px 0 0;
border-radius: 5px 5px 0 0;
}
#pricing-table .plan:nth-child(1) h3 {
-moz-border-radius: 5px 0 0 0;
-webkit-border-radius: 5px 0 0 0;
border-radius: 5px 0 0 0;
}
#pricing-table .plan:nth-child(4) h3 {
-moz-border-radius: 0 5px 0 0;
-webkit-border-radius: 0 5px 0 0;
border-radius: 0 5px 0 0;
}
#pricing-table h3 span {
display: block;
font: bold 25px/100px Georgia, Serif;
color: #777;
background: #fff;
border: 5px solid #fff;
height: 100px;
width: 100px;
margin: 10px auto -65px;
-moz-border-radius: 100px;
-webkit-border-radius: 100px;
border-radius: 100px;
-moz-box-shadow: 0 5px 20px #ddd inset, 0 3px 0 #999 inset;
-webkit-box-shadow: 0 5px 20px #ddd inset, 0 3px 0 #999 inset;
box-shadow: 0 5px 20px #ddd inset, 0 3px 0 #999 inset;
}
/* --------------- */
#pricing-table ul {
margin: 20px 0 0 0;
padding: 0;
list-style: none;
}
#pricing-table li {
border-top: 1px solid #ddd;
padding: 10px 0;
}
/* --------------- */
#pricing-table .signup {
position: relative;
padding: 8px 20px;
margin: 20px 0 0 0;
color: #fff;
font: bold 14px Arial, Helvetica;
text-transform: uppercase;
text-decoration: none;
display: inline-block;
background-color: #72ce3f;
background-image: -moz-linear-gradient(#72ce3f, #62bc30);
background-image: -webkit-gradient(linear, left top, left bottom, from(#72ce3f), to(#62bc30));
background-image: -webkit-linear-gradient(#72ce3f, #62bc30);
background-image: -o-linear-gradient(#72ce3f, #62bc30);
background-image: -ms-linear-gradient(#72ce3f, #62bc30);
background-image: linear-gradient(#72ce3f, #62bc30);
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
text-shadow: 0 1px 0 rgba(0,0,0,.3);
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 rgba(0, 0, 0, .7);
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 rgba(0, 0, 0, .7);
box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 rgba(0, 0, 0, .7);
}
#pricing-table .signup:hover {
background-color: #62bc30;
background-image: -moz-linear-gradient(#62bc30, #72ce3f);
background-image: -webkit-gradient(linear, left top, left bottom, from(#62bc30), to(#72ce3f));
background-image: -webkit-linear-gradient(#62bc30, #72ce3f);
background-image: -o-linear-gradient(#62bc30, #72ce3f);
background-image: -ms-linear-gradient(#62bc30, #72ce3f);
background-image: linear-gradient(#62bc30, #72ce3f);
}
#pricing-table .signup:active, #pricing-table .signup:focus {
background: #62bc30;
top: 2px;
-moz-box-shadow: 0 0 3px rgba(0, 0, 0, .7) inset;
-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .7) inset;
box-shadow: 0 0 3px rgba(0, 0, 0, .7) inset;
}
/* --------------- */
.clear:before, .clear:after {
content:"";
display:table
}
.clear:after {
clear:both
}
.clear {
zoom:1
}
以上就是CSS3 實(shí)現(xiàn)的定價(jià)表的詳細(xì)內(nèi)容,更多關(guān)于CSS3 定價(jià)表的資料請(qǐng)關(guān)注腳本之家其它相關(guān)文章!
相關(guān)文章
基于css3文章列表喜歡點(diǎn)贊按鈕特效源碼簡(jiǎn)單的js css3制作文章列表點(diǎn)擊按鈕喜歡或收藏功能。愛心點(diǎn)贊按鈕數(shù)量累計(jì)特效,非常不錯(cuò),喜歡的朋友快來下載吧2021-03-24
CSS3實(shí)現(xiàn)的登錄框表單浮動(dòng)占位符和提交按鈕發(fā)光特效源碼
是一段基于CSS3實(shí)現(xiàn)的可用于各大網(wǎng)站登錄頁面的帶有浮動(dòng)占位符和提交按鈕懸浮燈光加亮效果的登錄框代碼,非常實(shí)用又有趣,歡迎對(duì)此段代碼有興趣的朋友前來下載使用2021-03-22
CSS3 SVG表情圖標(biāo)評(píng)論交互特效源碼
是一段基于CSS3 SVG實(shí)現(xiàn)的5款表情包評(píng)論交互效果代碼,非常是適合作用于文章內(nèi)容評(píng)論/表情評(píng)論等功能,很有意思,歡迎有興趣的朋友前來下載使用2021-03-22
實(shí)現(xiàn)CSS3登錄注冊(cè)表單特效,表單內(nèi)部的背景和網(wǎng)頁整體的背景,在功能切換時(shí)顯得非常貼切,而且還有3D立體的視覺效果,歡迎下載2021-03-10
鼠標(biāo)懸停圖文列表css3動(dòng)畫特效代碼
一款簡(jiǎn)單好看的鼠標(biāo)懸停圖文列表css3動(dòng)畫特效,案例展示列表布局效果,鼠標(biāo)懸停圖片時(shí)中間的圓形文字背景放大,非常不錯(cuò),喜歡的朋友快來下載體驗(yàn)吧2021-03-08
CSS3實(shí)現(xiàn)的常見問題列表布局特效源碼
是一段基于CSS3實(shí)現(xiàn)的通用常見問題列表,標(biāo)題內(nèi)容展開收縮ui布局特效,非常有意思,歡迎需要此特效的朋友前來下載使用2021-02-22
CSS3實(shí)現(xiàn)發(fā)光按鈕登錄表單特效代碼
今天給大家分享一個(gè)黑色系發(fā)光按鈕登錄表單,這個(gè)登錄表單最大的特點(diǎn)在于,它有一個(gè)帶炫酷動(dòng)畫的登錄按鈕,非常不錯(cuò),喜歡的朋友快來下載體驗(yàn)吧2021-02-19- 這篇文章主要介紹了Html5+CSS3+EL表達(dá)式問題集錦,需要的朋友可以參考下2020-12-19
是一段簡(jiǎn)單的css3 input文本框占位符,placeholders占位符內(nèi)容填寫注冊(cè)表單特效,非常有意思,歡迎有興趣的朋友前來下載使用2020-12-11
jQuery帶寬測(cè)速儀表盤特效實(shí)例是一款jQuery+CSS3實(shí)現(xiàn)的電腦下載速度測(cè)試儀表盤動(dòng)畫效果。2020-12-10










