1. What can I do to make the width of a div change from left to right? 2. Dynamically drag and edit multi-level header

means that the width on the right side of the div is fixed, pull the left border, and the width shrinks from left to right

clipboard.png

div1,div2. div2div1div2

tablediv

clipboard.png

clipboard.png

Mar.04,2021

the way you say it should be right-aligned.
1. Set the natural width of float:right; to remain unchanged on the right and extend on the left;
2, absolute positioning or fixed positioning;
3, flex layout, there are also right alignment settings. You can refer to http://www.ruanyifeng.com/blo.


set div style position: absolute;right: 0; Set position:relative


to the parent element

first, put a div, in the middle of every two div as a handle (handle), to accept mouse events.

then, something like this (no documentation, the following code is pseudo code, please adapt to your base library):

  

I have an idea that while shrinking the element, translate, the element in the opposite direction. I don't know if it can be

.
Menu