Page History: CSS valid method
Compare Page Revisions
Page Revision: 2010/05/20 18:39
Valid IE6/IE7 CSS selectors
selector {
*property : value; // for IE6, IE7
_property : value; // for IE6
}
change this style
// for IE6
* html selector {
property : value;
}
// for IE7
*+html selector {
property : value;
}
Triggering hasLayout (hasLayout=1)
(if display: inline-block; then hasLayout=1)
selector {
display: inline-block;
*display: inline;
*zoom: 1;
}
change like this
selector {
display: inline-block; // hasLayout=1
}
// for IE6
* html selector {
display: inline;
}
// for IE7
*+html selector {
display: inline;
}
selector {
zoom: 1;
}
change like this
//hasLayout=0
selector {
height: 1px;
}
//hasLayout=1
selector {
height: auto;
}
// all about hasLayout=1