核心代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>自定义分割窗口</title>
<style>
* {
margin: 0;
padding: 0;
}
html, body {
height: 100%;
}
.root {
width: 100%;
height: 100%;
position: relative;
}
.left {
width: 20%;
height: 100%;
background-color: #CC0000;
position: absolute;
left: 0;
top: 0;
}
/* .center {
width: 60%;
height: 100%;
background-color: #FF8F06;
position: absolute;
left: 20%;