Zum Inhalt springen

Browserweiche

Erstellt am 15. März 2007 · 3 Antworten · letzte Antwort am 4. Oktober 2007

Tags: Frage

Mayon ·
[browser = msie]&& [version =< 7.0]
page.includeCSS.file1 =fileadmin/tn/templates/msie.css
page.includeCSS.file2= fileadmin/tn/templates/content.css
[GLOBAL]
[browser = msie]&& [version => 6.9]
page.includeCSS.file1 =fileadmin/tn/templates/msie7.css
page.includeCSS.file2= fileadmin/tn/templates/content.css
[GLOBAL]

foldendes als Browserweiche im Setup!
Hat immer funktioniert!
nur jetzt nicht mehr!
an was kann das liegen? was hab ich falsch?
Grüßle Mayon

ManuP ·

Hi Mayon,

die Browserweiche funktioniert bei mir (Version 4.1.2) auf die Schreibweise mit && oder AND. Egal ob du [GLOBAL] oder [END] hinschreibst.
Allerdings muss das im Feld constants stehen.
Kannst das Ganze ja als Konstante deklarieren und dann abfragen.

Viel Erfolg,
Manuel

ManuP ·

Hi,

also ich habe zum Beispiel folgendes für ein TMENU_LAYER (da der Abstand bei IE6 und IE7 unterschiedlich waren):

#Constants
[browser = msie] && [version =< 7.0]
abstandoben = top:89px;
[GLOBAL]
[browser = msie] && [version => 6.9]
abstandoben = top:82px;
[GLOBAL]

Und dann in...

#Setup
...
layerStyle = visibility:hidden;position:absolute;left:190px;{$abstandoben}width:...

Und es funktioniert 😉