VUE-表格佈局、表格查詢、工具欄、表格、分頁欄

shenzhen_zsw發表於2018-07-21

概述

VUE-表格佈局、表格查詢、工具欄、表格、分頁欄

 

 

效果圖

 

 

具體程式碼

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
      html,body{
        width: 100%;
        height: 100%;
        margin: 0px;
        padding: 0px;
      }

      .outer {
        width: 100%;
        height: 100%;
        background: #dcdfe6;
        padding-top: 200px;
        padding-bottom: 50px;
        box-sizing: border-box;
        position: relative;
      }

      .search {
        height: 100px;
        background: #5daf34;
        position: absolute; top: 0 ; left: 0 ; width: 100%;
      }

      .funtools {
        height: 100px;
        background: #3a8ee6;
        position: absolute; top: 100px ; left: 0 ; width: 100%;
      }

      .gridPanle {
        height: 100%;
        background: #4efffb;
        /*border: 5px solid red;*/
      }

      .fenye {
        background: #9933ff;
        width:100%;
        height: 50px;
        position: absolute; bottom: 0px;
      }
    </style>

  <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript">
    function hideSearch(){
      $('#search').hide();
      $('#funtools').css("top",0);
      $('.outer').css("padding-top", "100px");
    }

    function showSearch(){
      $('#search').show();
      $('#funtools').css("top",'100px');
      $('.outer').css("padding-top", "200px");
    }
</script>

</head>
<body>
<div class="outer">
  <div id="search" class="search">
    search<br/>
    search<br/>
  </div>
  <div id="funtools" class="funtools">
    funtools
    <input type="button" value="隱藏查詢欄" onclick="hideSearch()">
    <input type="button" value="顯示查詢欄" onclick="showSearch()">
  </div>
  <div id="gridPanle" class="gridPanle">
    grid
  </div>
  <div class="fenye">分頁</div>
</div>
</body>
</html>

 

 

 

 

 

 

 

 

 

 

相關文章