JS 实现 :可拖动改变上下两个区域大小
https://blog.youkuaiyun.com/qq_41646249/article/details/120994215
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>ResizeBar 上下移动</title>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.6.js'></script>
<style type='text/css'>
body,
html {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
#main {
background-color: BurlyWood;
position: absolute;
height: 40%;
right: 0;
left: 0;
top: 60%;
margin-top: 10px;
}
#sidebar {
background-color: IndianRed;