In HTML, table contains a scroll bar without moving the title bar.

Source: Internet
Author: User

First, I declare that there are many practices to introduce one of them.

<HTML>

<Body>

<Table width = "100%" align = "center" border = 0>

<Tr>

<Table width = "100%" border = 1>

<Tr>

& Lt; TD width = "50%" & gt;

Biaoti1321

</TD>

& Lt; TD width = "50%" & gt;

Biaoti2321321

</TD>

<TD>

& Nbsp;

</TD>

</Tr>

</Table>

</Tr>

<Tr>

<TD align = "center" width = "100%">

<Div style = "overflow-Y: auto; width: 100%; Height: 100px">

<Table width = "100%" border = 1>

<Tr>

<TD> 111 </TD>

<TD> 111 </TD>

</Tr>

<Tr>

<TD> 111 </TD>

<TD> 111 </TD>

</Tr>

<Tr>

<TD> 111 </TD>

<TD> 111 </TD>

</Tr>

<Tr>

<TD> 111 </TD>

<TD> 111 </TD>

</Tr>

<Tr>

<TD> 111 </TD>

<TD> 111 </TD>

</Tr>

<Tr>

<TD> 111 </TD>

<TD> 111 </TD>

</Tr>

<Tr>

<TD> 111 </TD>

<TD> 111 </TD>

</Tr>

<Tr>

<TD> 111 </TD>

<TD> 111 </TD>

</Tr>

<Tr>

<TD> 111 </TD>

<TD> 111 </TD>

</Tr>

</Table>

</Div>

</TD>

</Tr>

</Table>

</Body>

</Html>

 

The specific idea is that this is a big table, and the header and the result field each have a table,

The header has n headers, which must be divided into n + 1 TD. The total width of the First n td is 100%, and the last one is used to give the scroll bar position, otherwise, it is difficult to align with the following table.

The following result body table must be included in the Div. Set the length of TD to be consistent with the length of TD above.

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.