如何使将鼠标悬停在两个元素(这里是分隔蓝色和红色的垂直线上)之间的边界上是否可以调整每个元素的宽度?调整浏览器屏幕的两半
我要找的https://stackedit.io/editor
行为与<textarea>
调整的可能性这可能直接?
* { margin: 0; border: 0; padding: 0; }
textarea { background-color: red; width: 50%; position: absolute; top:0; left:0; height: 100%; }
#separator { cursor: ew-resize; position: absolute; top:0; width:1%; left:50%; height: 100%; }
#right { background-color: blue; width: 49%; position: absolute; top:0; right:0; height: 100%;}
<textarea>hello</textarea>
<div id="separator"></div>
<div id="right">yo</div>
在这里回答[http://stackoverflow.com/questions/17855401/how-do-i-make-a-div-width-draggable](http://stackoverflow.com/questions/17855401/how-do -i-make-a-div-width-draggable) – Lockless
也许没有绝对的位置。位置:绝对的; **意味着**的位置是**绝对**,不能也不会移动,不管怎样。他们的位置被锁定到坐标 – Zoe
@Call_Back_Function是不是很容易没有jQuery? – Basj