IE8中的字体大小 [英] Font Size Big in IE8

查看:168
本文介绍了IE8中的字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在IE8的下拉菜单中正确显示日文字体时遇到问题。问题是与FireFox和其他人出现的字体大小相比,IE8上的字体大小显得很大。在IE8上,由于字体大小很大,日语字符串会溢出< li>其定义为具有固定宽度,其中在FF中,Chrome完全适合于< li>。因为字体大小按预期显示。



我使用以下CSS。

Hi All,

I am facing issue in displaying the Japanese font properly in dropdown menus on IE8. The issue is "Font size is appears big on IE8 when compared to the font size appears on FireFox and others". On IE8 as the font size is big the Japanese string overflows the <li> which is defined with a fixed width, where as in FF,Chrome it exactly fits into the <li> as the font-size appears as expected.

Iam using the following CSS.

ul.menu ul li{
               position:relative;
               border-bottom:1px solid #056063;
               white-space:nowrap;
               width:100%;
    }
  
    ul.menu ul li a{
      padding:4px 12px;
      font-size:.92em;
      font-weight:normal;
      font-family:Arial,sans-serif;
      text-decoration:none;
      color:#086F6F;
      width:auto;
    }





任何人都可以帮我确定问题的原因。


提前谢谢

Yashwanth。



Could anyone help me in identifying the cause for the issue.

Thanks in advance
Yashwanth.

推荐答案

如果它是与IE 8相关的问题,那么通过检测浏览器版本(如本示例中所述 - 目标IE9或IE8但不能同时使用CSS [ ^ ]。



因此,对于IE 8,您将根据您的要求减小此大小。
If it is a IE 8 related issue, then reduce the font-size only for IE 8, by detecting the browser version like explained in this example - Target IE9 or IE8 but not both using CSS[^].

So, for IE 8, you will reduce this size as per your requirements.


这篇关于IE8中的字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆