PAUL

HTML表单源码二
今天实训学的。<!doctype html> <html lang="en"...
扫描右侧二维码阅读全文
26
2018/12

HTML表单源码二

今天实训学的。

<!doctype html>
 <html lang="en">
  <head>
  <title>哆点在线下单平台</title>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

  <!-- Bootstrap CSS -->
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
  </head>
  <body>
  
    <!-- 展板 -->
    <div class="jumbotron jumbotron-fluid bg-danger text-light">
        <div class="container">
            <h1 class="display-3">哆点</h1>
            <p class="lead"><span class="badge-pill badge-primary ">在线点单平台</span>
            </p>
        </div>
    </div>

    <!-- 容器 -->
    <div class="container-fluid">
        
        <!-- 行 -->
        <div class="row">
            <!-- 列 --> 
            <div class="col-lg-6 col-sm-12">
                <!-- 点单 -->
                <div class="row">
                    <!-- 选择饮品 -->
                    <div class="col-lg-6 col-sm-12">
                            <div class="form-group">
                                    <label for="">请您选择饮品:</label>
                                    <select class="form-control" name="" id="">
                                      <option>可乐</option>
                                      <option>雪碧</option>
                                      <option>柠檬茶</option>
                                      <option>乌龙茶</option>
                                      <option>乌梅茶</option>
                                      <option>龙井茶</option>
                                      <option>铁观音</option>
                                      <option>茯砖茶</option>
                                    </select>
                                  </div>
                    </div>
                    <!-- 选择规格 -->
                    <div class="col-lg-6 col-sm-12">
                            <div class="form-group">
                                    <label for="">规格:</label>
                                    <select class="form-control" name="" id="">
                                      <option>小杯</option>
                                      <option>中杯</option>
                                      <option>大杯</option>
                                      <option>超大杯</option>
                                      <option>一桶</option>
                                    </select>
                                  </div>
                    </div>
                </div>  
                <!-- 温度 -->
                    <div class="row ml-5">
                        <div class="col">
                                <div class="form-check form-check">
                                        <label class="form-check-label d-block">
                                            <input class="form-check-input" type="radio" name="C" id="" value="checkedValue" checked> 常温
                                        </label>
                                    </div>
                        </div>
                        <div class="col">
                                <div class="form-check form-check">
                                        <label class="form-check-label d-block">
                                            <input class="form-check-input" type="radio" name="C" id="" value="checkedValue"> 加冰
                                        </label>
                                    </div>
                        </div>
                        <div class="col">
                                <div class="form-check form-check">
                                        <label class="form-check-label d-block">
                                            <input class="form-check-input" type="radio" name="C" id="" value="checkedValue"> 开水
                                        </label>
                                    </div>
                        </div>
                    </div>
                <!-- 糖分 -->
                    <div class="row mx-3 my-3">

                        <div class="col">
                                <button type="button" class="btn btn-danger btn-lg px-3 mx-3">无糖</button>
                                <button type="button" class="btn btn-outline-danger btn-lg px-3 mx-3">葡萄糖</button>
                                <button type="button" class="btn btn-outline-danger btn-lg px-3 mx-3">半糖</button>
                                <button type="button" class="btn btn-outline-danger btn-lg px-3 mx-3">多糖</button>
                                <button type="button" class="btn btn-outline-danger btn-lg px-3 mx-3">白沙糖</button>
                                <button type="button" class="btn btn-outline-danger btn-lg px-3 mx-3">甜到死</button>
                        </div>

                    </div>
                <!-- 配料 -->

                    <div class="row my-3">
                        <div class="col-3">
                            <button type="button" name="" id="" class="btn btn-outline-success btn-block">牛奶</button>
                        </div>
                        <div class="col-3">
                            <button type="button" name="" id="" class="btn btn-outline-danger btn-block">加辣</button>
                        </div>
                        <div class="col-3">
                            <button type="button" name="" id="" class="btn btn-outline-success btn-block">咖啡</button>
                        </div>
                        <div class="col-3">
                            <button type="button" name="" id="" class="btn btn-outline-danger btn-block">老干妈</button>
                        </div>
                    </div>
                    <!-- 确认订单按钮 -->

                    <div class="row">
                     
                        <div class="offset-2 col-8">
                            <button type="button" name="" id="" class="btn btn-success btn-block">确认订单</button>
                        </div>
                    </div>

            </div>
            <div class="col-lg-6 col-sm-12 mt-4">
                
                <!-- 订单 -->
                <table class="table">
                    <thead>
                        <tr>
                            <th>饮品</th>
                            <th>规格</th>
                            <th>糖分</th>
                            <th>温度</th>
                            <th>配料</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td scope="row">柠檬茶</td>
                            <td>一桶</td>
                            <td>甜到死</td>
                            <td>开水</td>
                            <td>
                                <span class="badge badge-pill badge-danger">老干妈</span>
                                <span class="badge badge-pill badge-success">加辣</span>
                                <span class="badge badge-pill badge-primary">牛奶</span>
                            </td>
                            <td><span class="badge badge-pill badge-danger">退单</span></td>
                        </tr>  
                    </tbody>
                    <tbody>
                        <tr>
                            <td scope="row">柠檬茶</td>
                            <td>一桶</td>
                            <td>甜到死</td>
                            <td>开水</td>
                            <td>
                                <span class="badge badge-pill badge-danger">老干妈</span>
                                <span class="badge badge-pill badge-success">加辣</span>
                                <span class="badge badge-pill badge-primary">牛奶</span>
                            </td>
                            <td><span class="badge badge-pill badge-danger">退单</span></td>
                        </tr>  
                    </tbody>
                    <tbody>
                        <tr>
                            <td scope="row">柠檬茶</td>
                            <td>一桶</td>
                            <td>甜到死</td>
                            <td>开水</td>
                            <td>
                                <span class="badge badge-pill badge-danger">老干妈</span>
                                <span class="badge badge-pill badge-success">加辣</span>
                                <span class="badge badge-pill badge-primary">牛奶</span>
                            </td>
                            <td><span class="badge badge-pill badge-danger">退单</span></td>
                        </tr>  
                    </tbody>
                    <tbody>
                        <tr>
                            <td scope="row">柠檬茶</td>
                            <td>一桶</td>
                            <td>甜到死</td>
                            <td>开水</td>
                            <td>
                                <span class="badge badge-pill badge-danger">老干妈</span>
                                <span class="badge badge-pill badge-success">加辣</span>
                                <span class="badge badge-pill badge-primary">牛奶</span>
                            </td>
                            <td><span class="badge badge-pill badge-danger">退单</span></td>
                        </tr>  
                    </tbody>
                    <tbody>
                        <tr>
                            <td scope="row">柠檬茶</td>
                            <td>一桶</td>
                            <td>甜到死</td>
                            <td>开水</td>
                            <td>
                                <span class="badge badge-pill badge-danger">老干妈</span>
                                <span class="badge badge-pill badge-success">加辣</span>
                                <span class="badge badge-pill badge-primary">牛奶</span>
                            </td>
                            <td><span class="badge badge-pill badge-danger">退单</span></td>
                        </tr>  
                    </tbody>
                </table>
            </div>
        </div>

    </div>
    
    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
  </body>
  </html>
Last modification:September 21st, 2019 at 04:03 pm
如果觉得我的文章对您有用,请随意赞赏

Leave a Comment