Because of work needs, recently has been making CSS transliteration less, encountered the most problem is hack, some IE's hack,less does not support compiling;
The common unsupported hack are as follows:
- IE's filter notation
- \9\0 IE8 Partial support, IE9 support
- \9 all IE browsers are supported
- IE8, IE9 support, opera part support
In the latter three cases, a single presence does not affect compilation, but a compilation error often occurs when mixed use
The solution is as follows:
- Take shadow filter as an example
Filter: ~ "Progid:dximagetransform. Microsoft. Shadow (Strength = 1, Direction = 135, color = #FFFFFF) "; After compiling:
Filter:progid:DXImageTransform. Microsoft. Shadow (Strength = 1, Direction = 135, color = #FFFFFF);
2-4 Summary for
@ie-hack: ~ "\9\0";
div{
Height:[email protected];
}
These problems are temporarily encountered during the rewrite of less.
Less about CSS hack