Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
HTMLページを作成し、テキストボックスを挿入しました。JavaScript関数からページ内のテキストボックスの宛先を知りたいですか? 例のテキストボックスの上部は 100 px です。ありがとうございました。
これを試して:
window.onload = function() { console.log(document.getElementById("id1").offsetTop); };
id1三角測量する必要があるテキストボックスのIDはどこにありますか。
id1