34.关闭窗口的脚本 <a href=javascript:close()></a> ------------------------------------------------------------------------------- 35.如果文字过长,则将过长的部分变成省略号显示 <DIV STYLE="width: 120px; height: 50px; border: 1px solid blue;overflow: hidden; text-overflow:ellipsis"> <NOBR>就是比如有一行文字,很长,表格内一行显示不下.</NOBR> </DIV> ------------------------------------------------------------------------------- 36.进入主页后自动最大化 <script> self.moveTo(0,0) self.resizeTo(screen.availWidth,screen.availHeight) </script> ------------------------------------------------------------------------------- 37.凹陷文字 <div style="width:300px;padding:20px;overflow:hidden;word-wrap:break-word;word-break:break:all; font-size:12px; line-height:18px; background-color:#eeeeee;"> <font disabled> 怎么样,凹下去了吧?<br> 你不想试试吗?<br> <a href="www.xuexuexi.com.comhttp://www.xuexuexi.com.com/">www.xuexuexi.com.com</a></font> </div> ------------------------------------------------------------------------------- 38.运行代码框 <script> function Preview() {var TestWin=open(''); TestWin.document.write(code.value);} </script> <textarea id=code cols=60 rows=15></textarea> <br> <button onclick=Preview() >运行</button> ------------------------------------------------------------------------------- |