Set the width of the body to the width of the window (controlled by the following script) $("body").css("width", $(window).width()); At the same time, set the overflow of the body (written in the style) body{ overflow-x: hidden;} ps: Similarly, the table in div is also handled in this way ![]() ![]() Set the width of tableContainer (written in the style) and tableMain (controlled by the script) to be equal to the width of tableMainHead Copy code The code is as follows:$(".tableMain").css("width", $(".tableMainHead").css("width")); Set the overflow of tableContainer to hidden (written in the style) This has a disadvantage, that is, when the browser window size changes, the content in the body cannot be automatically centered (the div that originally used percentages for width settings could be automatically centered using margin: auto, but now that the extra part is hidden, it cannot be automatically centered) |
>>: Share the pitfalls of MySQL's current_timestamp and their solutions
Preface Project release always requires packaging...
Copy code The code is as follows: <html> &l...
Table of contents 1. Please explain what are the ...
1. Introduction to Linux .NET Core Microsoft has ...
background When developing a feature similar to c...
Today I learned a new CSS special effect, the wav...
Function: data display, table application scenari...
Table of contents Introduction to bootstrap and i...
This article example shares the specific code for...
MySQL version 5.0 began to support stored procedu...
This article example shares the specific code of ...
Many times, after we install a web service applic...
Table of contents Preface What is index pushdown?...
Table of contents Preface Using websocket Constru...
I am using centos 7 64bit system here. I have tri...