When using Dreamweaver or FrontPage to create HTML web pages, we may encounter this problem: once a good web page in the software is placed in a browser, more or less blank space will inexplicably appear at the bottom of the web page. So how do we eliminate this gap? reason: First of all, we need to know that when using software to write web pages, most of the time they are "stacked" through a graphical interface. When stacking web pages in this way, when creating layers or tables, the height defined by the software for the layers or tables will often exceed the height we want, but this is not visible in the software; however, when we open the web page in a browser, we will find that the blank spaces that do not exist in the software will be displayed in the browser. The height of a web page cannot be constrained simply by adding an html{height:XX px;} because in a web page, the characteristics of other elements nested inside an element have a higher priority. For example: If you have the following code in the same web page: body{font-size: 10px;} p {font-size: 9px;}, then the font size in the <p> element of the web page should be 9px instead of 10px. Due to the existence of this rule, when the total height of the middle layer of a web page is greater than the value of XX in html{height:XX px;}, html{height:XX px;} will naturally have no effect. Solution: For web page codes written by software like this, unnecessary blank spaces can be removed from the web page by looking for the definition of layer or table height in CSS and then modifying the height value. |
<<: Thumbnail hover effect implemented with CSS3
>>: A brief discussion on the application of Html web page table structured markup
There are many ways to write and validate form fi...
Now most projects have begun to be deployed on Do...
The pop-up has nothing to do with whether your cur...
Table of contents What is NULL Two kinds of NULL ...
The current environment is: Centos 7.5 docker-ce ...
This article shares the specific code for impleme...
environment: 1. Windows Server 2016 Datacenter 64...
Table of contents Rendering API changes Render fu...
Table of contents Preface text 1. Concepts relate...
What is margin-top collapse Margin-top collapse i...
introduce HTML provides the contextual structure ...
This article example shares the specific code of ...
Written in front Environment: MySQL 5.7+, MySQL d...
I don't know if you have used the frameset at...
1. Install MySQL: Use the following three command...