Less about CSS hack

Source: Internet
Author: User

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:

  1. IE's filter notation
  2. \9\0 IE8 Partial support, IE9 support
  3. \9 all IE browsers are supported
  4. 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:

  1. 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. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.