Automatically adapt to the TextBox control of the input content (taken from Luo Yonghao complete works)

xiaoxiao2021-03-06  14

Regarding the problem of Web development above the UI layout, I will introduce one for one.

Automatically adapt to the TextBox control of the input content width, which can solve the contradiction between the reserved control size and the number of users in the layout. But because the control is limited to use as a single line input: (, when entering the big piece of text, you will not be your heart, then you will do an automatically adapt to the height of TEXTBOX.

The principle and the TextBox that adapts to the width is not much, but this is more simple, because the growth in the height direction does not destroy the overall layout effect of the page (if the width will squeeze away other elements in the page), You don't need to use Agent TextBox as an actual recorded container, and you will increase