Instead of using a <div id="output">
you could use <span id="output">
which is inherently inline.
Alternatively you could style the <div>
with #output { display: inline-block;}
.
解決
Instead of using a <div id="output">
you could use <span id="output">
which is inherently inline.
Alternatively you could style the <div>
with #output { display: inline-block;}
.
他のヒント
Use <span>
instead of <div>
Use a span instead of a div
<body>
<p>GBN: <span id="output"></span>KH/s</p>
</body>