Home Web Front-end HTML Tutorial Use CSS to set the width of INPUT in TD_HTML/Xhtml_Web page production

Use CSS to set the width of INPUT in TD_HTML/Xhtml_Web page production

May 16, 2016 pm 04:37 PM
input width

Recently, when I was using C# to make a Web program, I encountered a problem:

When placing the TextBox asp control inside the TD in the Table, if the width is not set, the TD will automatically be stretched very large.

Looking at the source code of the page after running, we found that the TextBox control actually displays input on the client.

So consider using CSS to set the width and height of each control. But after setting it to 100%, the border will be covered. After adjustment, the width is set to 97% and the display will be normal.

Copy code
The code is as follows:


Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to implement laravel input hidden field How to implement laravel input hidden field Dec 12, 2022 am 10:07 AM

How to implement laravel input hidden field

How to encapsulate input components and unified form data in vue3 How to encapsulate input components and unified form data in vue3 May 12, 2023 pm 03:58 PM

How to encapsulate input components and unified form data in vue3

Detailed explanation of input box binding events in Vue documents Detailed explanation of input box binding events in Vue documents Jun 21, 2023 am 08:12 AM

Detailed explanation of input box binding events in Vue documents

What to do if there is no cursor when clicking on the input box What to do if there is no cursor when clicking on the input box Nov 24, 2023 am 09:44 AM

What to do if there is no cursor when clicking on the input box

How to use the input box carriage return event and verification function in the Vue document How to use the input box carriage return event and verification function in the Vue document Jun 20, 2023 am 09:13 AM

How to use the input box carriage return event and verification function in the Vue document

What is the input element in jquery? What is the input element in jquery? Jun 06, 2023 pm 02:18 PM

What is the input element in jquery?

How to prohibit input in html5 input How to prohibit input in html5 input Feb 03, 2023 am 10:02 AM

How to prohibit input in html5 input

Razer DeathAdder V3 HyperSpeed: New mouse offers high resolution and up to 8,000 Hz wireless polling rate Razer DeathAdder V3 HyperSpeed: New mouse offers high resolution and up to 8,000 Hz wireless polling rate Jun 22, 2024 am 12:20 AM

Razer DeathAdder V3 HyperSpeed: New mouse offers high resolution and up to 8,000 Hz wireless polling rate

See all articles