1 2 3 4 5 6 7 8 9 10 11 12 13 14
<html> <head></head> <body> <div style="position: absolute; outline: 1px solid magenta;"><input id="input" type="file"></div> <script> document.body.offsetHeight; document.getElementById("input").style.position = "absolute"; </script> </body> </html>