Bootstrap-table the table header is fixed, the table content is not aligned

Source: Internet
Author: User

Bootstrap have a lot of pits, in use is also in the pits, has been troubled by the problem finally solved, began my use of bootstrap-table this plug-in, a table set height, the table header and table content is not aligned, Baidu on the Internet to check the information, for me, nothing resolved, Originally did not think can find the solution, finally solved, the code is as follows

<table id= "peakalarmtable" class= "table table-striped table_list" >
</table>
CSS Code
. table_list_box{
   !important;
}
Just add this table-layout:fixed can solve the problem of the table is not aligned, when let me is to set the global, I hope to help everyone

Again, when I zoom in and out of the browser lip, the table is not aligned again, so I checked to resize to do a monitoring

$ (window). Resize (function () {
$ (' #continuousAlarmTable '). Bootstraptable (' Resetview ');
});


About Link http://blog.csdn.net/hanxue_tyc/article/details/54917227

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.