左右排版的 div 容器,可以拖动改变 div 宽度的占比。
完整代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Resizable Div Container</title>
<meta name="description" content="可以对div进行拖动缩放大小">
<style type="text/css">
#container.resizable {
width: 100%;
height: 100%;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: moz-none;
-ms-user-select: none;
user-select: none;
position: relative;
opac