Solution to the problem that the text is on the lower left and cannot be resized when the textarea is laid out

Solution to the problem that the text is on the lower left and cannot be resized when the textarea is laid out
Two small problems, but they bothered me for a long time.

First question

The text on the left side of the textarea is always at the bottom left of the textarea, which does not look nice.

Just set a property to do it

Copy code
The code is as follows:

<label style="vertical-align:top" >Remarks:</label><textarea rows="5" cols="65"></textarea>

Second question

The textarea text area has set cols and rows but can still change size

The same attribute can be used to

Copy code
The code is as follows:

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

Done!

So simple?

Well, it’s that simple!!!

If you don’t believe it, go try it!

<<:  A brief discussion on order reconstruction: MySQL sharding

>>:  How Web Designers Create Images for Retina Display Devices

Recommend

How to monitor Linux server status

We deal with Linux servers every day, especially ...

Detailed explanation of DOM style setting in four react components

1. Inline styles To add inline styles to the virt...

Two ways to implement square div using CSS

Goal: Create a square whose side length is equal ...

JavaScript Basics: Immediate Execution Function

Table of contents Immediately execute function fo...

Using Openlayer in Vue to realize loading animation effect

Note: You cannot use scoped animations! ! ! ! via...

HTML Language Encyclopedia

123WORDPRESS.COM--HTML超文本标记语言速查手册<!-- --> !D...

Let's talk about the LIMIT statement in MySQL in detail

Table of contents question Server layer and stora...

Solution to MySQL failure to start

Solution to MySQL failure to start MySQL cannot s...

Apply provide and inject to refresh Vue page method

Table of contents Method 1: Call the function dir...

Common repair methods for MySQL master-slave replication disconnection

Table of contents 01 Problem Description 02 Solut...

WeChat applet implements a simple calculator

A simple calculator written in WeChat applet for ...

In-depth explanation of MySQL stored procedures (in, out, inout)

1. Introduction It has been supported since versi...