主菜单在IE和Chrome之间显示不同 [英] main menu appear different between IE and Chrome

查看:67
本文介绍了主菜单在IE和Chrome之间显示不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好所有



主菜单的文本显示在chrome中(在每个菜单标题的中央),但在IE和IE中看起来不合适Firefox(文本对齐不在每个菜单标题的中心),以下是6个菜单标题的一个菜单标题的样式



hello all

The text of the main menus appear appropriate in chrome (in the center of each menu header), but they are not appear appropriate in IE and Firefox (the text alignment not in the center of each menu header) , the following is the style of one menu header of 6 menu headers

.tp_serv2
{
    margin: 30px  15px   0px 5px;
    direction:ltr;
    font-size:14px;
    position:relative;
    top: -1px;
    left: 815px;
    color: #ffffff;
    font-size: 11px;
    font-style: normal;
    font-variant: normal;
    font-weight: bold;
    line-height: 14px;
    font-family: "Trebuchet MS", verdana;
}





如果我改变css中的左边属性是合适的,即它在chrome中变得不合适。 />


请帮助



谢谢



if i change the left property in css to be appropriate in ie it become not appropriate in chrome.

please help

thank you

推荐答案

IE是老板。从浏览器开始,现在许多事情已经在w3c标准中发生了变化。

所有浏览器都实现了这些变化,但IE仍以自己的方式进行。真是令人头疼......

如果你使用jquery应用css那么更好。 Jquery会照顾你的头痛。

否则通过使用(Navigator.appname)检查appname,使用javascript中的两个样式表检查条件来应用CSS



希望这有帮助!
IE is the boss. From start of browsers now many of the things have changed in w3c standards.
All browser implemented those changes but IE still going in its own way. What a headache..
So better if you apply css using jquery. Jquery will take care of yours headache.
Else apply CSS by checking condition using two style sheets in javascript by checking appname using (Navigator.appname)

Hope this helps!


这篇关于主菜单在IE和Chrome之间显示不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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