Android webview input input box input text is too long, blocked by the input box, how to solve, how to make the previously entered English indented to the left, the back cursor can be seen and displayed.
Android webview input input box input text is too long, blocked by the input box, how to solve, how to make the previously entered English indented to the left, the back cursor can be seen and displayed.
you can set the input text-indent property to a negative value to achieve indentation. Text-indent is the distance of the text inside the input to the left, and setting a negative value is the opposite. Indent
$("- sharpinput_text" + nn) .css ("text-indent", "0px") multiple times by following the bad;
for(var i=1;i<20;iPP){
if(i==1){
if(text.length>12&&text.length<15){
$("-sharpinput_text"+nn).css("text-indent","-30px");
}
}else{
var num=12+(i-1)*3;
var nm=12+i*3;
if(text.length>=num&&text.length<nm){
$("-sharpinput_text"+nn).css("text-indent",(-30*i+6*i)+"px");
}
}
}
Next: Js closure problem
under Android, use webview to call a written web page to generate a mobile app, that occasionally touches the interface when running app, tests on a mobile phone. The mobile app jumps directly to Baidu s interface. I don t know if any god has ever enco...