[19/06 / 09- Sunday] CSS foundation _ examples

First, image formats & Hack (try not to use)

  IE6 picture png-24 does not support transparency, IE6 will gray background, png-8 may be used instead. But instead of using the following definition png-8 will decline.

  Js use to solve the problem, but the need to introduce an external js file.

  Some codes only need to specify the browser (mainly referring IE) execution, you can use CSS Hack to resolve.

  Hack conditions, such as <-! [If IE]> statement <[endif] -!> Is valid only for IE, other browsers will it as annotations. The following IE10 support this mode.

       Add underline, only to recognize patterns in the IE6 browser before style. * Only underline and add and IE7 browsers to recognize the following before style.

  Plus \ 0 only IE8 and older to identify the style. 

  * Html selector added then the selector may identify only IE6 

Second, a practice

 

Guess you like

Origin www.cnblogs.com/ID-qingxin/p/11094602.html