| Html 外觀 | | 程式碼 |
|
| |
|
<!DOCTYPE html>
<html>
<head>
<script src="jquery-3.6.0.min.js"></script>
<script>
.........................
</script>
<table border="1">
<tr><td> span </td><td><span id="sp"> 123 </span></td></tr>
<tr><td> div </td><td><div id="di"> abc </div></td></tr>
<tr><td> input </td><td><input type="text" id="ip" value="t" style="width:100px;"> </td></tr>
<tr><td> td </td><td id="td"> xyz </td></tr>
</table>
<br>
<table border="1">
<tr><td> span </td><td><span id="spo"> </span></td></tr>
<tr><td> div </td><td><div id="dio"> </div></td></tr>
<tr><td> input </td><td><input type="text" id="ipo" value="" style="width:100px;"> </td></tr>
<tr><td> td </td><td id="tdo"> </td></tr>
</table>
</body>
</html>