In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the IE6 support compatible with min-width, max-width CSS style attributes, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor with you to understand.
Let IE6 support max-width and IE6 support min-width style
When we write CSS, we often encounter a picture or a layout can not exceed the set a certain width range value, sometimes need to set a minimum width, and then summarized by DIVCSS5 to solve the problem that IE6 does not support min-width and does not support max-width. The following are CSS width IE6 support minimum width, maximum width resolution techniques (you may need to know more about CSS width).
1. IE6 supports max-width solution-TOP
IE6 supports maximum width, solving CSS code:
.yangshi {max-width:1000px;_width:_expression ((document.documentElement.clientWidth | | document.body.clientWidth) 1000? "1000px": "")
The 1000 and 1000px here are the values you need. Note that the three values are the same.
3. Let IE6 support min-width while supporting max-width solution-TOP
Let IE6 support both the minimum width and the maximum width limit setting. In this case, we often encounter the control of the picture, so that the uncertain size of the picture, if it is too wide, can not exceed a certain range of values, when small do not control his method, using CSS code:
_ width:_expression (this.scrollWidth > 620? "620px": (this.scrollWidth
< 1? "1px" : "auto")); 对图片控制CSS完整代码: img{max-width:620px;_width:_expression(this.scrollWidth >"620px": (this.scrollWidth)
< 1? "1px" : "auto"));} 这里说明:图片不能超出大于620px的宽度,又不小于1像素的宽度。 让所有浏览器包括IE6浏览器支持最大宽度又支持最小宽度DIV CSS代码: .yangshi{max-width:620px;min-width:1px;_width:_expression(this.scrollWidth >"620px": (this.scrollWidth < 1? "1px": "auto");}
Thank you for reading this article carefully. I hope the article "IE6 supports CSS style attributes compatible with min-width and max-width" shared by the editor will be helpful to you. At the same time, I also hope that you will support it and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.