If a website is widescreen, you drag the browser window left and right and the website width will change with the size of the window. When the browser window width is reduced to a certain extent, a scroll bar will appear below and the website width will not be reduced any further. We know that this simple function can be easily achieved using CSS min-width, but unfortunately, many of our users' IE6 does not support this very convenient attribute. What can we do? We can solve this problem by adding the following CSS statement when designing the web page: Method 1: CSS CodeCopy content to clipboard
Just add the above three lines of code to the div that requires a minimum width. The principle is to use the BUG of IE6 itself (when the content inside a block-level element exceeds the height of this block-level element, the height of the block-level element will be stretched, that is, the height attribute in IE6 itself is equivalent to min-height). Method 2: CSS CodeCopy content to clipboard
Method 3: CSS CodeCopy content to clipboard
Method 4: CSS CodeCopy content to clipboard
Any of the above four methods can solve the problem that IE6 does not support the min-width attribute. This site uses the fourth method. The above simple method of min-width and min-height compatible with IE6 is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. |
<<: Introduction to fourteen cases of SQL database
>>: CSS3 click button circular progress tick effect implementation code
Key Modifiers When listening for keyboard events,...
Overview An index is a table of correspondence be...
Today I will introduce two HTML tags that I don’t...
7 ways to implement a two-column layout with fixe...
In combination with the scenario in this article,...
1. Node server setup + database connection The op...
The width of the parent container is fixed. In or...
1. Go to the official website: D:\mysql-5.7.21-wi...
Table of contents Overview Method 1: Pass paramet...
Table of contents 1. Master-slave replication Mas...
1. Dynamically create objects There are two ways ...
This article describes MySQL index coverage with ...
[LeetCode] 180. Consecutive Numbers Write a SQL q...
1. Introduction This article mainly explains how ...
The table creation command requires: The name of...