运行 ❯
获取您
自己
的网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <title>Kilometers to Inches Length Converter</title> <body> <h2>Length Converter</h2> <p>Type a value in the Kilometers field to convert the value to Inches:</p> <p> <label>Kilometers</label> <input id="inputKilometers" type="number" placeholder="Kilometers" oninput="LengthConverter(this.value)" onchange="LengthConverter(this.value)"> </p> <p>Inches: <span id="outputInches"></span></p> <script> function LengthConverter(valNum) { document.getElementById("outputInches").innerHTML=valNum*39370; } </script> </body> </html>