A solution to the problem that the text is on the bottom left and the size cannot be changed in textarea layout


Two small problems, but it’s been a long time

First question

The text on the left side of textarea is always at the bottom left side of textarea, which looks ugly

Set a property and you’ll get it

Copy code

The code is as follows:

< label style = “vertical align: top” > note information: < label > < textarea rows = “5” cols = “65” > < textarea >

Second question

Textarea text field clearly sets cols and rows, but it can still change the size

The same property can be fixed

Copy code

The code is as follows:

<textarea rows=”5″ cols=”65″ style=”resize:none;”></textarea>

Get it done!

So simple?

EN is so simple!!!

Don’t believe it. Try it!

Recommended Today

Analysis of new data type instances of ES6 learning notes

An example of this paper describes the new data types of ES6 learning notes. To share with you for your reference, as follows: 1. Data deconstruction assignment 1. Deconstruction and assignment of arrays Basic usage: let [key1, key2…] = [value1, Value2…] Let [name, age, sex] = [‘xiaoming ‘, 24,’ male ‘]; console.log(name); console.log(age); console.log(sex); Note […]