Home >Web Front-end >HTML Tutorial >Use CSS to set the width of INPUT in TD_HTML/Xhtml_Web page production
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.