无法突出显示文本框中的文本在IE9文本、框中、突出

2023-09-10 21:15:17 作者:對於你、虛偽

我有C#MVC的Web应用程序,有一些文本框在IE9中,你可以在文本输入,但你无法通过鼠标或通过按住Shift键箭头键突出显示。

I have C# MVC web app that has some textboxes that in IE9 you can enter in text, but you can't highlight via the mouse or via holding shift and the arrow keys.

我环顾四周网上,我发现其他人遇到此,有没有解决方案。

I've looked around on the web and i've found other people experiencing this, with no solution.

一个网站,我发现,声称这是在使多个AJAX调用页面的问题,IE9,这我的网站已经但是,除去AJAX真的是没办法了。

One site i found claimed it was an issue with IE9 on pages that make multiple AJAX calls, which my site has but, removing AJAX really isn't a solution.

有没有通过code或通过IE9的设置,使用户可以高亮显示一个文本框的文本的方法吗?或者,这是IE9一个优秀的错误?

Is there a way via code or via settings in IE9 so that users can highlight text in a textbox? Or is this an outstanding bug in IE9?

编辑: 该网站工作完全正常的镀铬

The website works perfectly fine in chrome

推荐答案

原来这是,这是一个流氓的jQuery语句

Turns out it was a rogue jquery statement that was

这是禁用的选择在我的网站上的每一个文本框。最厉害的是,IE浏览器和Chrome处理它的一种方式和Firefox不同的方式使得它看起来像一个不同的错误

that was disabling selection on every single textbox in my site. The kicker being that IE and Chrome handled it one way and Firefox a different way making it seem like a different bug