Cursor is not displayed on text fields

2019-08-14 13:28发布

in this page: http://www.legrandclub.net there are two text fields. In all web browser all works fine but in Internet Explorer the cursor is not displayed when I click on one of two text fields, it's possible to write some text but the cursor is not displayed.

Which could be the cause of this problem?

Thanks

4条回答
Luminary・发光体
2楼-- · 2019-08-14 13:31

I solved the same problem by removing

padding:0;

from CSS.

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2019-08-14 13:32

I encountered the same problem and this is the issue: You should be handling the 'focus' event on that text field, so on tab focus in IE you will not see the cursor. For that you should also bind focusin; then it will work. The following is the sample code

$('search-large').bind('focus focusin', function () {

Hope it helps...

查看更多
做自己的国王
4楼-- · 2019-08-14 13:35

They're using the same background color on the input field as the cursor is (gray).

查看更多
三岁会撩人
5楼-- · 2019-08-14 13:53

This issue in IE < 9 was caused by adding padding to the left in my input fields. It was fixed by adding

input { padding-right:3px;}

to the stylesheet, where padding left was also 3px. This pushed the cusror back to where it is now visible.

查看更多
登录 后发表回答