HTML table Head Part does not move body part scrolling, Gocquan with growth

Source: Internet
Author: User

< style >
. table{width:100%;    Border-collapse:collapse; border-spacing:0;}

. Table Thead{Display:Block;width:100%;background:#ddd;}. Table Tbody{Display:Block;Height:70px;Overflow:Auto;width:100%;Border:1px solid #ddd;}. Table td,.table th{width:200px;Border-bottom:None;Border-left:None;Border-right:1px solid #CCC;Border-top:1px solid #DDD;padding:2px 3px 3px 4px}. Table TR{Border-bottom:1px solid #B74; } </style>
<Tableclass= "Table">                <thead>                <TR>                    <th>Header</th>                    <th>Header</th>                    <th>Header</th>                    <th>Header</th>                    <th>Header</th>                    <th>Header</th>                </TR>                </thead>                <tbodyclass= "M_scrollbar">                <TR>                    <TD>Fuck 1</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                </TR>                <TR>                    <TD>Fuck 1</TD>                    <TD>Fuc<BR>Kfuc<BR>Kfuc<BR>Kfuc<BR>Kfuc<BR>Kfuc<BR>Kfuc<BR>Kfuc<BR>Kfuc<BR>Kfuc<BR>Kfuc<BR>Kfuc<BR>Kfuc<BR>Kfuc<BR>K 2</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                </TR>                <TR>                    <TD>Fuck 1</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                </TR>                <TR>                    <TD>Fuck 1</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                    <TD>Fuck 2</TD>                </TR>                </tbody>            </Table>

HTML table Head Part does not move body part scrolling, Gocquan with growth

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.