Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: CSS HTML
body{font-size: 11px !important;font-size: 12px;
   font-family: Arial;
 }
 
Hi all!In IE9,the text seem to be more smaller than they in IE8 or FF or Chrome,it is so strange,is there anybody know how to fix it or why their size display in IE9 diffrently?
Thx!
Posted 18-Apr-13 5:26am
Edited 18-Apr-13 5:29am
v2
Comments
ryanb31 at 18-Apr-13 10:31am
   
Why is it strange? You are specifying 2 different font-sizes. Apparently IE8 renders it one way and IE9 renders it differently.
silverDrops at 18-Apr-13 10:36am
   
the !improtant is css hack for IE6,except ie6,all the browser will take the css attribut of font-size:11px;
ryanb31 at 18-Apr-13 10:42am
   
I know. I'm just saying with every new version of IE things render differently. Have you used the IE dev tools to try and figure out exactly what is happening?
silverDrops at 18-Apr-13 10:48am
   
I have used it!But I still can't get it.
ryanb31 at 18-Apr-13 10:49am
   
It may actually be a different font. If you use the dev tools there is a trace styles tab so you can see where formatting is coming from.
silverDrops at 18-Apr-13 10:54am
   
But I haven't use other font in any elements.
Sergey Alexandrovich Kryukov at 18-Apr-13 10:31am
   
Hm. Somewhat contradicting declaration can get you contradicting results...
The discrepancy between IE8 and IE9 is sorrowful, but what makes you writing so weird style?
—SA
silverDrops at 18-Apr-13 10:38am
   
just because the ie6 haven't been give up entirly in our country.
ryanb31 at 18-Apr-13 10:43am
   
I don't know anyone still supporting IE6, except for you I guess. :)
Stephen Hewison at 18-Apr-13 15:03pm
   
No, I have some large, slow moving, corporate machines as clients that still run IE6 as part of their workstation image.
Sergey Alexandrovich Kryukov at 18-Apr-13 15:52pm
   
What IE6?! Did you ask about IE6, too? It's well known what to do with it.
—AS
silverDrops at 18-Apr-13 10:45am
   
T_T
silverDrops at 18-Apr-13 10:51am
   
The topic runs so far away from its point,or I just to search the articles about different render way of IE8 and IE9,perhaps I can find some clue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 381
1 Praneet Nadkar 237
2 Marcin Kozub 225
3 Sergey Alexandrovich Kryukov 195
4 Shweta N Mishra 161
0 OriginalGriff 8,284
1 Sergey Alexandrovich Kryukov 7,327
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,920


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 18 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100