Invalid HTML table width setting

Source: Internet
Author: User

Problem Description:

When I was writing a Web table, the table width exceeded the width I expected, and I wanted to set it a little bit smaller, but it never worked. Change to doubt life! The code is as follows:

After several debugs, the table can change size, but there will be a minimum value, which will be invalid when the value is lower than the minimum value, and the table size is always the minimum value. After brainwave, the problem is locked on the Input tab. Thinking that the table size has a minimum is because there is something to make it big, so can not be smaller. After the thought, the code changes as follows, the effect let me very satisfied.

In summary, the problem arises because the input tag has a default width and height, and when you set the width of the table to a different size, you can make it larger than it is, but not smaller than it. It is also necessary to consider the size position of the inner label when making the layout of the table style.

At the same time, after encountering a bug to remind yourself, encounter problems always own code has a problem, according to logic to try to modify, to understand deeply, to think about something inside, do not let go of any possible.

Invalid HTML table width setting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.