أليس يكفي تعيينه في علامة الجدول؟ هذا ثابت ، إذا كنت تريد ضبطه بشكل ديناميكي ، فهل أنت؟
دالة com_onresize () {var contentSheight = document.body.clientheight ؛ var buttonsheight = document.getElementById ("buttons") .OffSeTheight ؛ var head1height = document.getElementById ("head1") .OffSeTheight ؛ var head2Height = document.getElementByid ( "Tablecontainer1") .style.height ؛ var t2 = document.getElementById ("Tablecontainer2") .style.height ؛ // ALERT (document.getElementByID ("tablecontainer1") .style.height) ؛ var h = contentsheight - buttonsheight - head1height - head2height - 13 ؛ 110) {return ؛} document.getElementById ("tablecontainer1") .style.height = h/2 + 'px' ؛ document.getElementById ("tablecontainer2") .Style.Style. var AvailableHeight = window.screen.availheight ؛ // Alert (document.getElementById ("tablecontainer1"). var index = document.getElementById ("Tablecontainer1"). var mainh = buttonsheight + head1height + head2height + 13 ؛ // 20: SCROLL 35: TITH 25: TITH 25: TR بينما ((Availheight -Mainh) <(20 + 35 + 25*INDEX)*2) {index = index - 1 ؛} var tableheight = 20 + 35 + 25*index ؛ document.getElementById ("tablecontainer1") .style.height = tableheight + 'px' ؛ document.getElementById ("tablecontainer2") .style.height = tableheight + 'px' ؛ Window.Resizeto (document.body.offsetWidth ، Mainh + TableHeight*2) ؛}