これが私のdivと私のiframeです:
<div class="divMinorView">
<!-- Selected order-->
<iframe id="ifMinor" src="#"></iframe>
</div>
また、iframe 内にはこのテーブルがあり、データの行が入力されます。時には 10 行、場合によっては 50 ~ 100 行になります。
<table id="slot_table">
<thead>
<tr>
<th> </th>
</tr>
</thead>
<tbody id="slot_rows">
<?php if (count($slots) == 0): ?>
<tr class="none">
<td colspan=9>No slots found in that minor code.</td>
</tr>
<?php else: ?>
<?php foreach ($slots as $slot): ?>
<tr <?php if ($slot->is_expired($end_db_fmt)) { echo 'class="expired"'; } ?>>
<td class="actions">
<?php if (!$slot->is_expired($end_db_fmt)): ?>
<span class="expire_slot">X</span>
<span class="expire_error faux_links tip" data-tip="There has been an error"><img src="/images/thumbs_down_ico.png" width="13" height="13"></span>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</tbody>
<tr>
<td> </td>
<td>
<select id="new_style" name="style">
<?php foreach ($style_list as $style): ?>
<option value="<?php echo $style->get_id(); ?>"><?php echo $style->get_desc(); ?></option>
<?php endforeach; ?>
</select>
</td>
<td class="ints"><input id="new_price" type="text" name="price_point" value=""></td>
<td><input type="submit" name="add_slot" id="add_slot" value="Add slot"></td>
</tr>
</table>
iframe id を に設定しようとheight:100%;
しただけでなく、css を に設定しようとしました。body{ margin:0; }
scrolling="no"
画面の下部にデータを入力できない理由がわかりません。スクロールする必要はありません。スクロールするよりも、データが取り込まれていることがページ上のすべての領域を埋め尽くす可能性がある場合を除きます。
どんな助けでも大歓迎です。高さの問題を修正するためにjqueryを使用する必要がありますか?
$("iframe").height($("#divMinorView").height());
$(window).resize(function() {
$("iframe").height($("#divMinorView").height());
});