简单教程
提交运行
代码编辑器:
<!DOCTYPE htm> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <style> body { padding-top: 70px } ul.list-group.col-lg-4 > li { background-color: #c952ca; color: white; text-align: center; font-size:125%; } ul.list-group.col-lg-4 > li.list-group-item:first-child{ background-color: #64086f; font-size: 200%; } .badge { background-color: #FAFAD2; color:#FF8C00; } </style> <div class="container"> <div class="row"> <ul class="list-group col-lg-4"> <li class="list-group-item">Bronze Package</li> <li class="list-group-item">Unlimited users</li> <li class="list-group-item">Unlimited storage</li> <li class="list-group-item">Forum Support</li> <li class="list-group-item">$9/Month</li> <li class="list-group-item"><a href="#"><button class="btn btn-lg btn-default">Buy Now</button></a></li> </ul> <!--second--> <ul class="list-group col-lg-4"> <li class="list-group-item">Gold Package<span class="badge">Most Preferred</span></li> <li class="list-group-item">Unlimited users</li> <li class="list-group-item">Unlimited storage</li> <li class="list-group-item">24X7 Support</li> <li class="list-group-item">$25/Month</li> <li class="list-group-item"><a href="#"><button class="btn btn-warning btn-lg">Buy Now</button></a></li> </ul> <!--third--> <ul class="list-group col-lg-4"> <li class="list-group-item">Silver Package</li> <li class="list-group-item">Unlimited users</li> <li class="list-group-item">Unlimited storage</li> <li class="list-group-item">email support</li> <li class="list-group-item">$15/Month</li> <li class="list-group-item"><a href="#"><button class="btn btn-lg btn-default">Buy Now</button></a></li> </ul> </div> </div>
运行结果: