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

What is the diagnosis of incomplete DIV+CSS page content display?

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

DIV+CSS page content shows what the incomplete diagnosis is, for this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

The contents of the DIV+CSS page show incomplete diagnostics

We often view a complete web page in the IE6 version of the browser, while the content is not complete in browsers such as IE7 and above, Firefox and other browsers-the DIV+CSS web page shows incomplete diagnostic tutorials.

Screenshots of the style are as follows:

Description: only half of the content text in a row is displayed.

◆ analysis of the cause:

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 * * points, if you do not remove the height width limit, you can reduce the content.

Why does ◆ display completely when the height is set 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.

The answer to the question about the incomplete diagnosis of DIV+CSS page content is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

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: 0

*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