Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the dislocation caused by the fixing of Bootstrap-table meter head

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to solve the dislocation caused by the fixed Bootstrap-table header". In the daily operation, I believe that many people have doubts about how to solve the problem caused by the fixed Bootstrap-table header. The editor consulted all kinds of data and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubt of "how to solve the dislocation caused by the fixed Bootstrap-table header". Next, please follow the editor to study!

Encounter problems

Although the front end is now dominated by the three major frameworks of VAR, there are still many projects that are using JQuery+Bootstrap. For example, the framework I'm in charge of now...

The situation is that the product wants to achieve the effect of scrolling the page down and fixing the header when the header reaches the top. When I saw this requirement, my mood was: Oh,so easy! ^ _ ^ Y

But when I actually realized the fixed meter head, I found that the meter head was crooked?!

Google for a moment

How does Bootstrap-table fix the header?

$('# table'). BootstrapTable ('destroy'). BootstrapTable ({columns: columns, data: data, pagination: true, pageSize: 25, pageNumber: 1, / / initialize load the first page Default first page pageSize: 25, / / number of rows per page (*) pageList: [10,25,50,100], / / number of rows per page (*) fixedColumns: false, / / fixed column fixedNumber: 0, / / fixed number of columns height: 800, / /

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 270

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report