campos20

Tabelas com bootstrap

Sep 22nd, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.96 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3.   <head>
  4.     <!-- Required meta tags -->
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.  
  8.     <!-- Bootstrap CSS -->
  9.     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
  10.    
  11.  
  12.     <title>Lista de Compras</title>
  13.   </head>
  14.   <body>
  15.       <h1 class="text-center">Lista de Compras</h1>
  16.  
  17.       <div class="container">
  18.          
  19.           <div class="row">
  20.               <div class="col-3 bg-dark text-white">
  21.                 Lista de compras do mês de setembro de 2020.
  22.  
  23.               </div>
  24.  
  25.               <div class="col-9">
  26.                   <table class="table table-hover table-striped table-bordered">
  27.                       <thead class="thead thead-dark">
  28.                           <tr>
  29.                               <th scope="col">#</th>
  30.                               <th scope="col">Descrição</th>
  31.                               <th scope="col">Quantidade</th>
  32.                               <th scope="col">Valor unitário</th>
  33.                               <th scope="col">Total</th>
  34.                           </tr>
  35.                       </thead>
  36.  
  37.                       <tbody>
  38.                           <tr>
  39.                               <th scope="row">1</th>
  40.                               <td>Arroz 5kg</td>
  41.                               <td>1</td>
  42.                               <td>R$ 40,00</td>
  43.                               <td>R$ 40,00</td>
  44.                           </tr>
  45.  
  46.                           <tr>
  47.                             <th scope="row">2</th>
  48.                             <td>Leite longa vida</td>
  49.                             <td>12</td>
  50.                             <td>R$ 4,20</td>
  51.                             <td>R$ 50,40</td>
  52.                           </tr>
  53.  
  54.                           <tr>
  55.                               <th scope="row">3</th>
  56.                               <td>Frigideira</td>
  57.                               <td>2</td>
  58.                               <td>R$ 25,00</td>
  59.                               <td>R$ 50,00</td>
  60.                           </tr>
  61.  
  62.                           <tr>
  63.                             <th scope="row">4</th>
  64.                             <td>Arroz 5kg</td>
  65.                             <td>1</td>
  66.                             <td>R$ 40,00</td>
  67.                             <td>R$ 40,00</td>
  68.                         </tr>
  69.  
  70.                         <tr>
  71.                           <th scope="row">5</th>
  72.                           <td>Leite longa vida</td>
  73.                           <td>12</td>
  74.                           <td>R$ 4,20</td>
  75.                           <td>R$ 50,40</td>
  76.                         </tr>
  77.  
  78.                         <tr>
  79.                             <th scope="row">6</th>
  80.                             <td>Frigideira</td>
  81.                             <td>2</td>
  82.                             <td>R$ 25,00</td>
  83.                             <td>R$ 50,00</td>
  84.                         </tr>
  85.  
  86.                       </tbody>
  87.                   </table>
  88.               </div>
  89.  
  90.           </div>
  91.       </div>
  92.    
  93.  
  94.     <!-- Optional JavaScript -->
  95.     <!-- jQuery first, then Popper.js, then Bootstrap JS -->
  96.     <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
  97.     <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
  98.     <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
  99.   </body>
  100. </html>
Add Comment
Please, Sign In to add comment