[TYPO3-german] Problem mit Conditional Comments

Gregor Hermens gregor at a-mazing.de
Fri Oct 9 12:22:38 CEST 2009


Hallo Ingo,

Ingo Preuß schrieb:

> der IE6 findet sein CSS nicht:

was spricht dagegen, sich rein auf die Conditional Comments zu verlassen:

 
# Page Setup
page {

    includeCSS {
        standard = fileadmin/templates/css/style_k.css
        standard.media = screen
        print = fileadmin/templates/css/print.css
        print.media = print
    }
    headerData.10    = TEXT
    headerData.4.value (
        <!--[if lt IE 7]>
            <style type="text/css">
                @import "fileadmin/templates/css/ie6_k.css"
            </style>
        <![endif]-->
        <!--[if IE 7]>
            <style type="text/css">
                @import "fileadmin/templates/css/ie7_k.css"
            </style>
        <![endif]-->
    )
    ...
}

Alle Nicht-MS-Browser ignorieren das eh als Kommentar.

Gruß,
Gregor
-- 
http://www.a-mazing.de/


More information about the TYPO3-german mailing list