为什么我的标头在internetexplorer中改变了?
问题描述:
我使用css创建了一个具有无序列表UL的菜单.我正在不同的浏览器中打开它.此菜单在chrome和Firefox中正确显示.当我在Internet Explorer 9中打开此菜单时,菜单大小正在增加,我无法获取解决方案,请告诉我原因.我该如何解决..
I created one menu with unordered list UL using the css . I am opening this in different browsers . This menu is coming correctly in chrome and Firefox. when i am opening this menu in Internet explorer 9 the menu size is increasing i am not able to get the solution please tell me the reason. How can i solve this..
答
我认为您应该在HTML的head标签内使用meta标签.
< meta http-equiv ="X-UA-Compatible" content ="IE = edge"/>
它将强制使用最新的IE模式.
I think you should use a meta tag inside your head tag of html.
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
It will force the last/newer IE mode.