zoukankan      html  css  js  c++  java
  • 常用到的html页面布局和组件: 自己用

    1. 用div当作圆

    <div  style="border: 1px solid blue;height: 100px;  100px; border-radius: 200px">div圆圈</div>

    2. 用bootstrap实现的表格: 标题固定,表内容可滚动

    CSS:
    
    .single-table-wrapper{
        height: 85vh;
         100%;
        margin-bottom: 0px;
        border: 1px solid #ddd;
    }
    
    .single-table-wrapper tbody{
        height: 80vh;
        overflow-y:auto;
         100%;
    }    
        
    .single-table-wrapper thead,
    .single-table-wrapper tr,
    .single-table-wrapper th,
    .single-table-wrapper tbody,
    .single-table-wrapper tr,
    .single-table-wrapper td{
       display:block;
    }
    
            
    .single-table-wrapper tbody td{
        float:left;
     }
      
    .single-table-wrapper thead tr th{
        float:left;
    }
    HTML:
    <div class="single-table-wrapper">
            
                <table class="table table-hover">
                    <thead>
                      <tr>
                        <th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">序号</th>
                                        <th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">标题1</th>
                                        <th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">标题1</th>
                                        <th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">标题1</th>
                                        <th class="col-xs-2 col-sm-2 col-mg-2 col-lg-2">标题1</th>
                                        <th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">标题1</th>
                                        <th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">标题1</th>
                                        <th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">允许搭乘</th>
                                        <th class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">状态</th>
                                        <th class="col-xs-2 col-sm-2 col-mg-2 col-lg-2">&nbsp;
                                        </th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr ng-repeat="i in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ,13 ,14, 15]">
                           <td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">001</td>
                                        <td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">001</td>
                                        <td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">001</td>
                                        <td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">001</td>
                                        <td class="col-xs-2 col-sm-2 col-mg-2 col-lg-2">001</td>
                                        <td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">001</td>
                                        <td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">001</td>
                                        <td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">001</td>
                                        <td class="col-xs-1 col-sm-1 col-mg-1 col-lg-1">001</td>
                                        <td class="col-xs-2 col-sm-2 col-mg-2 col-lg-2">
                                            <a class="btn btn-primary btn-xs">查看</a>
                                        </td>
                      </tr>
                      
                    </tbody>
              </table>
            
            </div>
  • 相关阅读:
    委托使用不当导致内存变大
    Reactive Extension
    WPF TextBox输入显示提示
    Reactive Extensions 初识
    WPF 验证
    SPOJ 1487. Query on a tree III
    HDU3966 Aragorn's Story
    SPOJ 2939. Query on a tree V
    SPOJ 913. Query on a tree II
    SPOJ2666. Query on a tree IV
  • 原文地址:https://www.cnblogs.com/nelson-hu/p/7819231.html
Copyright © 2011-2022 走看看