直接码上:

    <script type="text/javascript">
        function getIframeDOM(id)
        {
            return document.getElementById(id).contentDocument || document.frames[id].document;
        }
        function setHeight(s)
        {
            var bodyfont = getIframeDOM("iframeZW");
            var ihei =$("#iframeZW").height();
            $("#iframeZW").height(ihei+20);
            //单位标准化
            bodyfont.body.style.height = (parseInt(bodyfont.body.offsetHeight)+20)+"px";
        }
        function setSize(s)
        {
            var bodyfont = getIframeDOM("iframeZW");
            bodyfont.body.style.fontSize = s+"px";
        }
    </script>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2022-01-28
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案