189 8069 5689

如何使用Bootstrap实现CSS3价格表-创新互联

这篇文章给大家分享的是有关如何使用Bootstrap实现CSS3价格表的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

创新互联主要从事成都做网站、网站建设、网页设计、企业做网站、公司建网站等业务。立足成都服务邛崃,10余年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:028-86922220

先来看效果图

如何使用Bootstrap实现CSS3价格表

查看演示 下载源码

首先在页面中引入bootstrap.min.css文件,这里我用官方的CDN资源,你也可以下载到本地使用。


该css3价格表的HTML结构如下:


 
     
         
             
                Standard 
                 
                    per month 
                     
                        $ 
                        10 
                        99 
                     
                
                                        
  • 50GB Disk Space
  •                       
  • 50 Email Accounts
  •                       
  • 50GB Monthly Bandwidth
  •                       
  • 10 Subdomains
  •                       
  • 15 Domains
  •                                     sign up              
              
                                                Business                                        per month                                                $                          20                          99                                                                                
  • 60GB Disk Space
  •                       
  • 60 Email Accounts
  •                       
  • 60GB Monthly Bandwidth
  •                       
  • 15 Subdomains
  •                       
  • 20 Domains
  •                                     sign up                               

    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; } 
    }

    现在你可以打开浏览器看看效果了,手机上效果也不错的。

    感谢各位的阅读!关于“如何使用Bootstrap实现CSS3价格表”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!


    文章名称:如何使用Bootstrap实现CSS3价格表-创新互联
    转载注明:http://cdxtjz.cn/article/dhhphd.html

    联系我们

    您好HELLO!
    感谢您来到成都网站建设公司,若您有合作意向,请您为我们留言或使用以下方式联系我们, 我们将尽快给你回复,并为您提供真诚的设计服务,谢谢。
    • 电话:028- 86922220 18980695689
    • 商务合作邮箱:631063699@qq.com
    • 合作QQ: 532337155
    • 成都网站设计地址:成都市青羊区锣锅巷31号五金站写字楼6楼

    小谭建站工作室

    成都小谭网站建设公司拥有多年以上互联网从业经验的团队,始终保持务实的风格,以"帮助客户成功"为已任,专注于提供对客户有价值的服务。 我们已为众企业及上市公司提供专业的网站建设服务。我们不只是一家网站建设的网络公司;我们对营销、技术、管理都有自己独特见解,小谭建站采取“创意+综合+营销”一体化的方式为您提供更专业的服务!

    小谭观点

    相对传统的成都网站建设公司而言,小谭是互联网中的网站品牌策划,我们精于企业品牌与互联网相结合的整体战略服务。
    我们始终认为,网站必须注入企业基因,真正使网站成为企业vi的一部分,让整个网站品牌策划体系变的深入而持久。