Use CSS to set the width of INPUT in TD

Use CSS to set the width of INPUT in TD
Recently, when I was using C# to make a Web program, I encountered a problem:

When you put the TextBox asp control inside the TD in the Table and do not set the width, the TD will be automatically expanded.

After checking the source code of the page after running, we find that the TextBox control actually displays input on the client.

So consider using CSS to set the width and height of each control. However, when it is set to 100%, the border will be covered. After adjustment, the width is set to 97% and it displays normally.

Copy code
The code is as follows:

<style type="text/css">
.borderNone {width:97%; height:100%;border:none;text-align:left;}
</style>

<<:  How to cancel the background color of the a tag when it is clicked in H5

>>:  Detailed examples of replace and replace into in MySQL into_Mysql

Recommend

Detailed explanation of Vue save automatic formatting line break

I searched for many ways to change it online but ...

Vue+openlayer5 method to get the coordinates of the current mouse slide

Preface: How to get the coordinates of the curren...

Modify the maximum number of mysql connections and configuration files in docker

1. Find the mysql image docker ps 2. Enter the mi...

Summary of commonly used tool functions in Vue projects

Table of contents Preface 1. Custom focus command...

When to use table and when to use CSS (experience sharing)

The main text page of TW used to have a width of 8...

MySQL statement execution order and writing order example analysis

The complete syntax of the select statement is: S...

Detailed explanation of mysql execution plan id is empty (UNION keyword)

Introduction During the work process, slow querie...

Recommended plugins and usage examples for vue unit testing

Table of contents frame First-class error reporti...

How to batch generate MySQL non-duplicate mobile phone number table example code

Preface In many MySQL test scenarios, some test d...

A complete guide to the Docker command line (18 things you have to know)

Preface A Docker image consists of a Dockerfile a...

MySQL 5.7.18 version free installation configuration tutorial

MySQL is divided into installation version and fr...

HTML (css style specification) must read

CSS style specifications 1. Class Selector 2. Tag...