html

    技术2022-05-11  78

    1。网页文本编辑框<TEXTAREA>高度随内容变化

    <TEXTAREA COLS=27 onPropertyChange="this.style.posHeight=this.scrollHeight"> </TEXTAREA>

     2。<meta ...>网页自动刷新

    <META HTTP-EQUIV="Refresh" CONTENT="0; url=xxx.htm">

    3。

    文件下载的 HTTP Header

    以 ASP 为例:<%Response.ContentType = "text/plain"Response.AddHeader "Content-disposition", "attachment; filename=aaa.txt"Response.write "...."%>

    <script language="javascript" type="text/javascript"> function setFrameWindowHeight() { var theTable = document.getElementById("theTable"); parent.setContentHeight( Math.max(theTable.scrollHeight + 10, 20) ); } setTimeout("setFrameWindowHeight()", 300); setTimeout("setFrameWindowHeight()", 2500); </script>


    最新回复(0)