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

About Nginx gzip configuration

The principle of nginx to achieve resource compre...

Detailed explanation of linux nslookup command usage

[Who is nslookup?] 】 The nslookup command is a ve...

Detailed explanation of webpage screenshot function in Vue

Recently, there is a requirement for uploading pi...

Detailed explanation of CSS margin collapsing

Previous This is a classic old question. Since a ...

Specific use of MySQL global locks and table-level locks

Table of contents Preface Global Lock Table lock ...

MySQL 5.7 installation and configuration tutorial

This article shares the MySQL installation and co...

How to implement Vue timer

This article example shares the specific code of ...

Tutorial on using iostat command in Linux

Preface It is said that if the people doing opera...

MySQL initialization password operation under Mac

A simple record of the database startup problems ...

Practical record of handling MySQL automatic shutdown problems

I recently helped someone with a project and the ...

VMware Workstation Pro installs Win10 pure version operating system

This article describes the steps to install the p...