HTML DOM frame ÊôÐÔ

¶¨ÒåºÍÓ÷¨

frame ÊôÐÔ¿ÉÉèÖûò·µ»Ø±í¸ñµÄÍⲿ±ß¿ò¡£

Óï·¨

tableObject.frame=void|above|below|hsides|vsides|lhs|rhs|box|border

ʵÀý

ÏÂÃæµÄÀý×ÓÉèÖÃÁ˱í¸ñµÄÁ½ÖÖ²»Í¬µÄ±ß¿ò£º

<html>
<head>
<script type="text/javascript">
function aboveFrames()
  {
  document.getElementById('myTable').frame="above"
  }
function belowFrames()
  {
  document.getElementById('myTable').frame="below"
  }
</script>
</head>
<body>

<table id="myTable">
<tr>
<td>100</td>
<td>200</td>
</tr>
<tr>
<td>300</td>
<td>400</td>
</tr>
</table>
<br />
<input type="button" onclick="aboveFrames()"
value="Show above frames">
<input type="button" onclick="belowFrames()"
value="Show below frames">

</body>
</html>
VUE