我对Modal jQuery
和iframe
有疑问。
iframe
中的页面大小不到iframe
的一半。
我的网页是否有任何方式可以占据height
的完整width
iframe
?
以下是我的code
:
<link href="https://code.jquery.com/ui/1.11.3/themes/flick/jquery-ui.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.11.3/jquery-ui.js"></script>
<script type="text/javascript">
var dialog = $("#dialog");
var openModal = $("#btnLupa");
dialog.dialog({
modal: true,
autoOpen: false,
});
dialog.load(function () {
dialog.dialog("open");
});
var AbrirModal = function (url, title, width, height) {
dialog.dialog("option", "width", width);
dialog.dialog("option", "height", height);
dialog.dialog("option", "title", title);
dialog.attr("src", url, width);
}
</script>
以下是具有iframe
<iframe id="dialog" class="ui-helper-hidden noScrolling"></iframe>
<tr>
<td class="label_right" nowrap>Contrato </td>
<td>
<input type="text" name="num_contrato" value="" size="15" maxlength="17" tabindex="1" OnKeyPress="javascript:MascAlfaNum()" OnKeyDown="TeclaEnter()" onchange="PesquisaContratoMontaFilial();">
<!--<img id='' style='display:; cursor:hand' name='Pesquisa_Contrato' width='16' height='16' src='/gen/mid/lupa.gif' border='0' alt='Pesquisa Contrato' onClick="javascript:AbrePesquisa('/GEN/ASP/GEN0001a.asp?ind_situacao=&tipo_empresa=&ind_classificacao=&p_cod_tipo_contrato=&indsubmit=false&txt_nome_campo_cod=num_contrato&txt_nome_campo_cod_ts=cod_ts_contrato&txt_nome_campo_desc=nome_contrato&ind_tipo_pessoa=J&funcao_executar=PesquisaContratoMontaFilial();&abre_modal=S&ind_alteracao_contrato=&tipo_preco=','Pesquisa_Contrato','Pesquisa Contrato', 700, 500, 20, 15, 'S')">-->
<img id='btnLupa' style='display:; cursor:hand' name='Pesquisa_Contrato' width='16' height='16' src='/gen/mid/lupa.gif' border='0' alt='Pesquisa Contrato' onclick='AbrirModal("../../ace/ace005a.asp?/GEN/ASP/GEN0001a.asp$$ind_situacao=&tipo_empresa=&ind_classificacao=&p_cod_tipo_contrato=&indsubmit=false&txt_nome_campo_cod=num_contrato&txt_nome_campo_cod_ts=cod_ts_contrato&txt_nome_campo_desc=nome_contrato&ind_tipo_pessoa=J&funcao_executar=PesquisaContratoMontaFilial();&abre_modal=S&ind_alteracao_contrato=&tipo_preco=", "Pesquisa Contrato", 700, 500)'>
<input type="text" name="nome_contrato" value="" size="50" tabindex="-1" Readonly class="camposblocks">
<input type="hidden" name="cod_ts_contrato" value="">
<input type="hidden" name="ind_tipo_pessoa" value="J" />
</td>
</tr>
请参阅此iframe
中browser
内的页面
我希望该页面会填满iframe
。
请帮助我。