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;
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;
}
</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
</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>
</body>
</html>
相關文章
- 元素自適應水平垂直居中
- 有重複元素的全排列
- flutter 父級寬度不固定,子集多個元素自動填充的佈局方案方法Flutter
- 浮動流元素排列規則
- mybatis自動填充多個表相同欄位的值MyBatis
- 元素垂直水平居中
- Spring AOP 實現《自動自動填充Entity》Spring
- CSS3實現文字垂直排列CSSS3
- div垂直居中-CSS元素垂直居中方法CSS
- mybatisplus欄位值自動填充MyBatis
- JavaScript陣列元素全排列JavaScript陣列
- 關於元素排列的DFS
- Win10桌面取消自動排列,重新整理仍然有圖示移動——適用於桌面排列患者Win10
- mybatis自動填充時間欄位MyBatis
- android 8.0 Autofill Framework (自動填充框架)AndroidFramework框架
- 讓一個元素水平垂直居中,到底有多少種方案?
- 多邊形填充-活動邊表法
- 自動填充被拆分的單元格
- 禁用 element 中v-input 自動填充
- 元素水平居中,垂直居中方法
- CSS 文字li元素中垂直居中CSS
- springboot~jpa審計欄位的自動填充Spring Boot
- oracle一列拆分為多列Oracle
- 如何自動填充SQL語句中的公共欄位SQL
- 一列寬度固定一列寬度自適應佈局
- Mybatis-plus學習筆記(十一)自動填充功能MyBatis筆記
- MyBatis-Plus-實用的功能自動填充欄位MyBatis
- Mac Monterey如何設定自動填充登入密碼?Mac密碼
- 【mybatis-plus】主鍵id生成、欄位自動填充MyBatis
- CSS元素(文字、圖片)水平垂直居中方法CSS
- 不定寬度下,元素的垂直居中,水平居中
- 元素水平垂直居中三種方法實現
- 直播系統app原始碼,元素水平垂直居中APP原始碼
- Vue | 指令實現自動翻譯填充英文名功能Vue
- APPIUM-Android自動化元素定位方式APPAndroid
- 卡證自動識別填充,簡化應用繫結操作
- Mybatis plus通用欄位自動填充的最佳實踐總結MyBatis
- CSS浮動元素特點有什麼CSS