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

WBOY
Release: 2016-05-16 16:37:02
Original
1237 people have browsed it

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:


Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template