HTML DOM rows 属性
定义和用法
rows 属性可设置或返回框架中行的数目和尺寸。
由逗号分割的像素或百分比列表定义了列的数目和高度:
ວິທະຍາສາດ
framesetObject.rows=row1,row2,row3....
ຄວາມຍາດ
ໃນຄວາມຈິງຂອງພວກເຮົາທັງຍັງຈະສ້າງເອກະສານ HTML ທີ່ມີ frameset ກັບສອງປະຕູ. ແຕ່ລະປະຕູຖືກກຳນົດໃຫ້ຈະກວມອຸປະກອນຈອງບານທີ່ 50% ຂອງຈອງບານບານບານຂອງບານບານ:
<html> <frameset rows="50%,50%"> <frame src="frame_rows.htm"> <frame src="frame_a.htm"> </frameset> </html>
ເວັບໄຊ "frame_rows.htm" ໄດ້ຖືກຈອດໃນສາຍທີໜຶ່ງ ແລະ ເວັບໄຊ "frame_a.htm" ໄດ້ຖືກຈອດໃນສາຍທີສອງ.
ລາຍການຂໍ້ຄວາມແບບທີ່ໃຊ້ສຳລັບ "frame_rows.htm" ທີ່ຢູ່ນັ້ນ:
<html> <head> <script type="text/javascript"> function changeRows() {parent.document.getElementById("main").rows="30%,70%"
} function restoreRows() {parent.document.getElementById("main").rows="50%,50%"
} </script> </head> <body> <form> <input type="button" onclick="changeRows()" value="Change row size" /> <input type="button" onclick="restoreRows()" value="Restore row size" /> </form> </body> </html>