HighDots Forums  

Fontsize in IE erfragen

Javascript (German) Programmiersprache JavaScript. (de.comp.lang.javascript)


Discuss Fontsize in IE erfragen in the Javascript (German) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Axel Berger
 
Posts: n/a

Default Fontsize in IE erfragen - 03-14-2008 , 09:11 AM






In einem meiner Designs ist das linke Navigationsmenü "fixed" wenn das
Fenster groß genug dafür ist. In standardkonformen Browsern klappt das
auch prima. Jetzt würde ich es gern auch für den IE7 übernehmen. Das
Problem:
Ich muß wissen, wie groß das Fenster in Einheiten von em ist. Mit
getComputedStyle ist das gar kein Problem, aber mit currentStyle sehr
wohl.

Mein Design beruht auf diesem Gerüst:
http://www.positioniseverything.net/articles/jello.html

und das von dort übernommene Stylesheet enthält den Eintrag:
BODY {
font-size: 100.01%;
/* this body font-size fixes an IE bug
and maintains x-browser uniformity */
}

currentStyle für BODY liefert mir also stets "100.01%", und das sagt
mir natürlich garnichts.
Wie kann ich im IE abfragen, welche Schriftgröße der Anwender im
Browser vorgegeben hat?

--
Danke
Axel


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.