Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the minimum maximum width and minimum maximum height of a web page compatible with IE6 written in css

Shulou Source: shulou.com Published: 2022-06-03 14:16:28 10月19日 Update

Compatible with IE6 web page minimum maximum width and minimum maximum height css writing is what, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this can learn, I hope you can gain something.

Minimum width:

The code is as follows:

.min_width{ min-width:300px; /*sets max-width for IE */ _width:_expression(document.body.clientWidth

< 300 ? "300px" : "auto");} 最大宽度 代码如下: .max_width{ max-width:600px; /*sets max-width for IE */ _width:_expression(document.body.clientWidth >

600 ? "600px" : "auto");}

minimum height

The code is as follows:

.min_height{ min-height:200px; /* sets min-height for IE */ _height:_expression(this.scrollHeight

< 200 ? "200px" : "auto");} 最大高度 代码如下: .max_height{ max-height:400px; /* sets max-height for IE */ _height:_expression(this.scrollHeight >

400 ? "400px" : "auto");}

Maximum Minimum Length

The code is as follows:

.min_and_max_width{ min-width:300px; max-width:600px; /* sets min-width & max-width for IE */ _width: _expression(document.body.clientWidth

< 300 ? "300px" :( document.body.clientWidth >

600 ? "600px" : "auto"));}

maximum minimum height

The code is as follows:

.min_and_max_height{ min-height:200px; max-height:400px; /* sets min-height & max-height for IE */ _height: _expression(this.scrollHeight

< 200 ? "200px" :( this.scrollHeight >

400 ? "400px" : "auto");} Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.

Tags: Maximum minimum code height width help writing web page clarity content this articles beginners more knowledge industry information information channels problems needs Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MySQL OPPO Reno Shulou Information Linux