Bootstrap列定价表UI问题

时间:2017-01-26 21:49:48

标签: html css html5 twitter-bootstrap user-interface

这是我的HTML-Bootstrap代码:

<div class="container">
         <div class="row db-padding-btm db-attached">
            <div class="col-xs-12 col-sm-3 col-md-3">
               <div class="db-wrapper"> 
                  <div class="db-pricing-eleven db-bk-color-one">
                     <div class="price">
                        <sup>$</sup>99
                        <small>per quarter</small>
                     </div>
                     <div class="type">
                        BASIC PLAN
                     </div>
                     <ul>
                        <li><i class="glyphicon glyphicon-print"></i>30+ Accounts </li>
                        <li><i class="glyphicon glyphicon-time"></i>150+ Projects </li>
                        <li><i class="glyphicon glyphicon-trash"></i>Lead Required</li>
                     </ul>
                     <div class="pricing-footer">
                        <a href="#" class="btn db-button-color-square btn-lg">BOOK ORDER</a>
                     </div>
                  </div>
               </div>
            </div>
            <div class="col-xs-12 col-sm-3 col-md-3">
               <div class="db-wrapper">
                  <div class="db-pricing-eleven db-bk-color-two popular">
                     <div class="price">
                        <sup>$</sup>199
                        <small>per quarter</small>
                     </div>
                     <div class="type">
                        MEDIUM PLAN
                     </div>
                     <ul>
                        <li><i class="glyphicon glyphicon-print"></i>30+ Accounts </li>
                        <li><i class="glyphicon glyphicon-time"></i>150+ Projects </li>
                        <li><i class="glyphicon glyphicon-trash"></i>Lead Required</li>
                     </ul>
                     <div class="pricing-footer">
                        <a href="#" class="btn db-button-color-square btn-lg">BOOK ORDER</a>
                     </div>
                  </div>
               </div>
            </div>
            <div class="col-xs-12 col-sm-3 col-md-3">
               <div class="db-wrapper">
                  <div class="db-pricing-eleven db-bk-color-three">
                     <div class="price">
                        <sup>$</sup>249
                        <small>per quarter</small>
                     </div>
                     <div class="type">
                        ADVANCE PLAN
                     </div>
                     <ul>
                        <li><i class="glyphicon glyphicon-print"></i>30+ Accounts </li>
                        <li><i class="glyphicon glyphicon-time"></i>150+ Projects </li>
                        <li><i class="glyphicon glyphicon-trash"></i>Lead Required</li>
                     </ul>
                     <div class="pricing-footer">
                        <a href="#" class="btn db-button-color-square btn-lg">BOOK ORDER</a>
                     </div>
                  </div>
               </div>
            </div>
            <!-- <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
               <div class="db-wrapper">
                  <div class="db-pricing-eleven db-bk-color-six">
                     <div class="price">
                        <sup>$</sup>599
                        <small>per quarter</small>
                     </div>
                     <div class="type">
                        EXTENDED PLAN
                     </div>
                     <ul>
                        <li><i class="glyphicon glyphicon-print"></i>30+ Accounts </li>
                        <li><i class="glyphicon glyphicon-time"></i>150+ Projects </li>
                        <li><i class="glyphicon glyphicon-trash"></i>Lead Required</li>
                     </ul>
                     <div class="pricing-footer">
                        <a href="#" class="btn db-button-color-square btn-lg">BOOK ORDER</a>
                     </div>
                  </div>
               </div>
            </div> -->
         </div>
         <!-- <div class="row db-padding-btm db-attached">
            <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
                <div class="db-wrapper">
                    <div class="db-pricing-eleven db-bk-color-one">
                        <div class="price">
                            <sup>$</sup>99
                                <small>per quarter</small>
                        </div>
                        <div class="type">
                            SMALL PLAN
                        </div>
                        <ul>

                            <li><i class="glyphicon glyphicon-print"></i>30+ Accounts </li>
                            <li><i class="glyphicon glyphicon-time"></i>150+ Projects </li>
                            <li><i class="glyphicon glyphicon-trash"></i>Lead Required</li>
                        </ul>
                        <div class="pricing-footer">

                            <a href="#" class="btn db-button-color-square btn-lg">BOOK ORDER</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
                 <div class="db-wrapper">
                <div class="db-pricing-eleven db-bk-color-two popular">
                    <div class="price">
                        <sup>$</sup>159
                                <small>per quarter</small>
                    </div>
                    <div class="type">
                        MEDIUM PLAN
                    </div>
                    <ul>

                        <li><i class="glyphicon glyphicon-print"></i>30+ Accounts </li>
                        <li><i class="glyphicon glyphicon-time"></i>150+ Projects </li>
                        <li><i class="glyphicon glyphicon-trash"></i>Lead Required</li>
                    </ul>
                    <div class="pricing-footer">

                        <a href="#" class="btn db-button-color-square btn-lg">BOOK ORDER</a>
                    </div>
                </div>
                     </div>
            </div>
            <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
                 <div class="db-wrapper">
                <div class="db-pricing-eleven db-bk-color-three">
                    <div class="price">
                        <sup>$</sup>799
                                <small>per quarter</small>
                    </div>
                    <div class="type">
                        ADVANCE PLAN
                    </div>
                    <ul>

                        <li><i class="glyphicon glyphicon-print"></i>30+ Accounts </li>
                        <li><i class="glyphicon glyphicon-time"></i>150+ Projects </li>
                        <li><i class="glyphicon glyphicon-trash"></i>Lead Required</li>
                    </ul>
                    <div class="pricing-footer">

                        <a href="#" class="btn db-button-color-square btn-lg">BOOK ORDER</a>
                    </div>
                </div>
                     </div>
            </div>

            </div> -->
      </div>

这是我的Css:

/*============================================================
BACKGROUND COLORS
============================================================*/
.db-bk-color-one {
    background-color: #f55039;
}

.db-bk-color-two {
    background-color: #46A6F7;
}

.db-bk-color-three {
    background-color: #47887E;
}

.db-bk-color-six {
    background-color: #F59B24;
}
/*============================================================
PRICING STYLES
==========================================================*/
.db-padding-btm {
    padding-bottom: 50px;
}
.db-button-color-square {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.50);
    border: none;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
}

    .db-button-color-square:hover {
        color: #fff;
        background-color: rgba(0, 0, 0, 0.50);
        border: none;
    }


.db-pricing-eleven {
    margin-bottom: 30px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, .5);
    color: #fff;
    line-height: 30px;
}

    .db-pricing-eleven ul {
        list-style: none;
        margin: 0;
        text-align: center;
        padding-left: 0px;
    }

        .db-pricing-eleven ul li {
            padding-top: 20px;
            padding-bottom: 20px;
            cursor: pointer;
        }

            .db-pricing-eleven ul li i {
                margin-right: 5px;
            }


    .db-pricing-eleven .price {
        background-color: rgba(0, 0, 0, 0.5);
        padding: 40px 20px 20px 20px;
        font-size: 60px;
        font-weight: 900;
        color: #FFFFFF;
    }

        .db-pricing-eleven .price small {
            color: #B8B8B8;
            display: block;
            font-size: 12px;
            margin-top: 22px;
        }

    .db-pricing-eleven .type {
        background-color: #52E89E;
        padding: 50px 20px;
        font-weight: 900;
        text-transform: uppercase;
        font-size: 30px;
    }

    .db-pricing-eleven .pricing-footer {
        padding: 20px;
    }

.db-attached > .col-lg-4,
.db-attached > .col-lg-3,
.db-attached > .col-md-4,
.db-attached > .col-md-3,
.db-attached > .col-sm-4,
.db-attached > .col-sm-3 {
    padding-left: 0;
    padding-right: 0;
}

.db-pricing-eleven.popular {
    margin-top: 10px;
}

    .db-pricing-eleven.popular .price {
        padding-top: 80px;
    }

我正在附加我想要设计的图像。由于我不熟悉bootstrap列,因此我在调整表格方面遇到了问题,如附图所示。我还要对移动设备和平板电脑做出响应。

我只希望代码在bootstrap-html中,因为我的整个网站只在bootstrap中。

有人可以帮我解决这个问题吗?

帮助得到赞赏。感谢

enter image description here

1 个答案:

答案 0 :(得分:0)

也许使用flexbox,示例结构,已经在Bootstrap4中使用了flexbox

"
jenkins.InitReactorRunner$1 onTaskFailed 
SEVERE: Failed inspecting plugin /plugins/<plugin-name>.jpi 
java.io.IOexception: plugin installation failed:No manifest at /plugins/<plugin-name>/META-INF/MANIFEST.MF"

现场演示 - https://jsfiddle.net/tk8h81gw/