在兼容模式下禁用IE10清除字段 [英] Disable IE10 clear field in Compatibility mode

查看:127
本文介绍了在兼容模式下禁用IE10清除字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不希望在IE10及更高版本中呈现的文本框中具有清晰的功能("X"按钮).为此,我将伪元素-ms-clear的显示设置为none.但是,当IE在兼容模式下运行时,它仍然会显示.由于这是一个Intranet站点,因此它将始终以兼容模式运行.而且没有解决方法: http://connect.microsoft.com/IE/feedback/details/783743/disable-ie10-clear-field-button-when-rendering-in-compatibility-mode

I don't want the clear functionality (the X button) in text boxes rendered in IE10 and above. For this, I'm setting the display of the pseudo element -ms-clear to none. However, it still shows up when IE is running in Compatibility mode. Since this is an Intranet site, it will always run in Compatibility mode. And there's no workaround for this: http://connect.microsoft.com/IE/feedback/details/783743/disable-ie10-clear-field-button-when-rendering-in-compatibility-mode

强制IE以标准模式运行.还有其他解决方法吗?

Using <add name="X-UA-Compatible" value="IE=edge" /> in web.config to force IE to run in standard mode is not recommended as per msdn, as far as production scenarios are concerned. Is there any other way of getting round this?

推荐答案

根据microsfts的官方回复您所报告的问题是设计使然".以下是Microsoft

According to microsfts' official response "The issue you are reporting is by design".Here is a link to official response from microsoft link

这篇关于在兼容模式下禁用IE10清除字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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