PHP版本/ IE9 CSS冲突的select元素 [英] PHP versions/IE9 CSS clashes of the select element

查看:99
本文介绍了PHP版本/ IE9 CSS冲突的select元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在PHP 5.4.3上构建一个Web应用程序,我有一个< select>< option> 元素,其CSS属性 border :none ,当我在localhost上运行IE9上的应用程序时,它没问题。但是,应用程序应存储在生产环境中的实际环境中安装了PHP 5.1.6,并且在生产环境中在IE9上运行应用程序时,边框看起来像是Windows应用程序中的暗3D边框或文本框边界。我测试了不同的CSS属性,并没有任何影响 - 看起来像IE9与PHP 5.1.6完全忽略边框CSS设置(再次,在我的本地主机上测试它很好)。

I build a web application on PHP 5.4.3 and I have a <select><option> element with a CSS property border:none, and indeed when I run the application on IE9 on localhost it's fine. However, the actual environment where the application should be stored in production, has the PHP 5.1.6 installed, and when running the application on IE9 on the production environment the border looks like a dark 3D border in windows application or a textbox boundaries. I tested with different CSS properties and there's no impact - looks like IE9 with PHP 5.1.6 completely ignores border CSS settings (which again, on my localhost it was tested fine).

Chrome,FF,Safari或Opera不会发生这种情况 - 只需使用IE浏览器。

It does not happening with Chrome, FF, Safari or Opera - just with IE.

很遗憾,升级生产PHP不是一种选择。

Upgrading the production PHP is unfortunately not an option.

屏幕截图:

IE9 with PHP 5.4.3(本地主机) - 无边框。

IE9 with PHP 5.4.3 (local host) - No border.

IE9与PHP 5.1.6(生产) - 黑色3D边框。

IE9 with PHP 5.1.6 (production) - Black 3D border.

提前致谢。

推荐答案

IE9可以记住某些域的呈现模式。如果您在IE开发人员工具中手动切换浏览器模式,它将记住您的选择。请确保浏览器模式文档模式设置为标记为页面默认值的值

IE9 can remember the rendering mode for certain domains. If you manually switched browser mode in IE developer tools it will remember your choice. Please make sure Browser Mode and Document Mode are set to value marked as Page Default.

这篇关于PHP版本/ IE9 CSS冲突的select元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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