Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem that the content of div+css web page is incomplete?

Shulou Source: shulou.com Published: 2022-06-01 07:43:03 11月06日 Update

This article mainly introduces the relevant knowledge of "how to solve the incomplete display of the content of the div+css page". The editor shows you the operation process through the actual case, the operation method is simple and fast, and the practicality is strong. I hope this article "how to solve the incomplete display of the content of the div+css page" can help you solve the problem.

Analyze the causes:

1. Height is set in css

2. Set the css stylesheet property overflow:hidden to hide objects beyond the specified width and height-css hiding.

Solution:

1. Height is set in css

Cancel the height (height) css style of its object, it will be compatible with all browsers, and the content will be displayed completely. If you cancel the height so that the border of the content section on the left and right of the page layout is not aligned, you can not cancel the height, but you need to reduce the content and remove the incomplete content.

2. Set the css stylesheet property overflow:hidden to hide objects that exceed the specified width and height.

Generally, setting the height and setting the overflow:hidden style at the same time will cause the content to be displayed incompletely in IE6. Solutions such as the first point, if you do not remove the height width limit, you can reduce the content.

Why can the height be displayed completely in IE6, but not in other browsers?

A: because of the IE6 kernel, you set the height, but if your content exceeds the set height, it will naturally break the height width you set, but it will not be able to break the set height in browsers such as IE7, IE8, Firefox and so on.

Of course, if you want to set more content will not break your set height width (including IE6), you can set the height and width at the same time set overflow:hidden property style, so that in IE6 will not break your set height and width.

This is the end of the introduction on "how to solve the problem of incomplete display of div+css pages". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Tags: Height content width style web page object property browser knowledge setting browsing reason at the same time method industry different practical lieutenant general kernel method Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Apple NVidia Xiaomi Redmi