Prev | Current Page 565 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

For example, the following conditional comment targets IE6 and IE7
using subexpressions and the OR operator:

Microsoft refers to the this style of conditional comments as downlevel-hidden,
since browsers that don??™t support conditional comments (including IE4 and earlier)
will interpret the conditional comment code as a standard HTML comment, and
ignore it completely. And yes??”Microsoft describes all browsers except IE5 and
later as ???downlevel??? browsers!
There is, however, another version of conditional comments that will allow these
downlevel browsers to be targeted; they??™re called downlevel-revealed conditional
comments.
Downlevel-revealed Conditional Comments
In downlevel-revealed conditional comments, the HTML content inside the
conditional statements is revealed to browsers that don??™t support conditional
comments, because the conditional statements??”and only the conditional
statements??”are ignored. If the statement evaluates to true (in a supporting browser),
the content inside the conditional statements is also revealed.


Pages:
553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577