A altura da auto -adaptação do iframe compatível com o navegador convencional, o script JS é o seguinte:
Copie o código do código da seguinte forma:
// iframe altamente adaptativo
Função ifRameaultOfit (ifRameObj) {
setTimeout (function () {
if (! ifRameObj) retornar;
ifRameObj.Height = (ifRameObj.documen? IfRameObj.document.body.scrolHeight: iframameobj.contentDocument.offsetheightheightheightheightheighht)
}, 200);
} <span style = "font-family: Arial, Helvetica, Sans-Service;"> </span>
Método de chamada:
Copie o código do código da seguinte forma:
<iframe id = "hqright" name = "hqright" online = "javascript: ifRameautofit (this);"
Hight = "235px;"
src = "market/hqdata_page.aspx? t = tjs"> </frame>
Extensão:
Copie o código do código da seguinte forma:
// Dinâmico adicionando estilo
função addSheetfile (obj, caminho) {
ifj == indefinido || obj == null)
obj = document;
var fileref = obj.createElement ("link")
fileref.rel = "STILESHEET";
fileref.type = "text/css";
fileref.href = caminho;
fileref.media = "Screen";
var headobj = obj.getElementsByTagName ('Head') [0];
Headobj.appendChild (fileref);
}