Итак, решение для min-height:
#div1 {max-height:
/* IE 6 */
height: expression(this.scrollHeight < 50 ? "50px" : "auto");
/* Other browsers */
min-height: 50px;
}
#div1 {min-width:
/* IE 6: */
height: expression(this.scrollHeight > 50 ? "50px" : "auto");
/* Other browsers: */
max-height: 50px;
}
#div1 {max-width:
/* IE 6: */
width: expression(this.scrollWidth < 50 ? "50px" : "auto");
/* Other browsers: */
min-width: 50px;
}
#div1 {Смешанное решение для min-width и max-width:
/* IE 6: */
width: expression(this.scrollWidth > 50 ? "50px" : "auto");
/* Other browsers: */
max-width: 50px;
}
#div1 {
/* IE 6: */
width: expression(this.scrollWidth < 50 ? "50px" : (this.scrollWidth > 100 : "100px" : "auto"));
/* Other browsers: */
min-width: 50px;
max-width: 100px;
}
Комментариев нет:
Отправить комментарий