HTML Input cursor position issue in Chrome when value is empty

前端 未结 8 1143
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 13:28

Just recently I have noticed out text inputs having a display issue in Google Chrome but only when the text is empty.

Notice how in the top image, when the input is

8条回答
  •  误落风尘
    2020-12-13 13:42

    I had the same issue those days but only on IOS 8.1, so maybe my solution will help somebody. The issue came from a div tag which had set a transform CSS property. I solve the problem with the following code:

    #your-parent-div {
        -webkit-transform: none;
        -moz-transform: none;
        -o-transform: none;
    }
    

提交回复
热议问题