当前位置: 代码迷 >> BODY的解决方案
 
  • 写js时 如何避免老浏览器

    写js时如何处理老浏览器 用html注释来解决<html> <body> <scripttype="text/javascript"> <!-- document.write("HelloWorld!"); //--> </script> </body> </html>这样支持js的浏览器就显示HelloWorld...

    72
    热度
  • javascript this 在a 标签中的运用

    javascriptthis在a标签中的使用 <html><head></head><body>?<ahref="javascript:alert(this)">seasion1</a>?<ahref="#"onclick="alert(this)">seasion2</a></body>&...

    66
    热度
  • javascript兑现显示或隐藏

    javascript实现显示或隐藏 <head><scripttype="text/javascript">functionshow(){document.getElementById("hid").style.display=document.getElementById("hid").style.display==""?"none":"";}</script>...

    21
    热度
  • JS 取目前窗口大小的函数

    JS取当前窗口大小的函数 functiongetWindowSize(){return{Width:Math.max(document.body.scrollWidth,document.documentElement.clientWidth),Height:Math.max(document.body.scrollHeight,document.documentElement.clientHei...

    71
    热度
  • js 暗藏

    js隐藏 <html><head><scriptsrc="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"type="text/javascript"language="javascript"></script> <scripttype="text/javascript">...

    238
    热度
  • js中一些授命!(摘抄)

    js中一些指令!(摘抄) 一、【文件(F)】菜单中的命令的实现1、〖打开〗命令的实现[格式]:document.execCommand("open")[说明]这跟VB等编程设计中的webbrowser控件中的命令有些相似,大家也可依此琢磨琢磨。[举例]在<body></body>之间加入:打开2、〖使用记事本编辑〗命令的实现[格式]:location.replace("vi...

    50
    热度
  • dwr服务器关闭弹出异常解决方案

    dwr服务器关闭弹出错误解决方案 解决办法: 哪一个页面弹出了关闭服务器错误,可以在其body中,加入一行js代码:dwr.engine.setErrorHandler(function(){}); 如: <bodyonLoad="dwr.engine.setActiveReverseAjax(true);dwr.engine.setErrorHandler(function(){...

    39
    热度
  • 转:兑现iFrame自适应高度

    转:实现iFrame自适应高度 转载自:http://www.cnblogs.com/skywind/archive/2007/07/24/829550.html ? <iframeid="iFrame1"name="iFrame1"width="100%"onload="this.height=iFrame1.document.body.scrollHeight"frameborder...

    12
    热度
  • 在web首次访问页面时如何先加载action中数据

    在web首次访问页面时怎么先加载action中数据 在index.jsp中使用: <%@pagecontentType="text/html;charset=GBK"%> <html> ?<head> ???<scripttype="text/javascript"> ????????window.onload=function() ????????...

    82
    热度
  • 【转】HttpClient4 简略使用

    【转】HttpClient4简单使用 需要导入的jar包packagemain; importjava.io.IOException; importjava.io.UnsupportedEncodingException; importjava.net.URI; importjava.net.URISyntaxException; importjava.util.ArrayList; impor...

    595
    热度
  • 如何移除a 标签的onclick事件

    怎么移除a标签的onclick事件 <html> <head> <title>JavaScript</title> </head> <body> <hr> <aid="a1"href="#"onclick="alert('onclick未移除')">11</a> <inputtype=...

    362
    热度
  • jquery live()的应用

    jquerylive()的使用 <html> <head> <scripttype="text/javascript"src="/jquery/jquery.js"></script> <scripttype="text/javascript"> $(document).ready(function(){ $("p").live("cl...

    568
    热度
  • escape跟encodeURI

    escape和encodeURI <html> <head> <scripttype="text/javascript"> functiontestJs(){ vartem1="xingming"; vartem2="姓名"; varresult=encodeURI(tem2); alert...

    82
    热度
  • 不测的调用了方法或属性访问(IE)

    意外的调用了方法或属性访问(IE) ? <scripttype="text/javascript"src="jquery-1.4.4.min.js"></script> <scripttype="text/javascript"> $(document).ready(function(){ //alert("ahaha"); $("#test").append(...

    107
    热度
  • document.frames()与document.frames[]的差异

    document.frames()与document.frames[]的区别 document.frames()与document.frames[]的区别<html><body><iframeid="ifr_1"name="ifr_1"></iframe></body></html>其中:document.frames(“if...

    270
    热度
  • 给自个儿看的

    给自己看的 <html><framesetcols="25%,50%,25%"><framesrc="/example/html/frame_a.html"><framesrc="/example/html/frame_b.html"><framesrc="/example/html/frame_c.html"><noframes&...

    101
    热度
  • table 设立高度为100%

    table设置高度为100% 一般来说都是给table加个style="height:100%" 但是不产生效果的,为什么呢。因为表格是相对于页面来说高度并不是100% 要在htmlbody也要设置100% <style>html,body{height:100%}</style> ? ? ?

    359
    热度
  • 怎么对滚动条添加样式

    如何对滚动条添加样式 在css中修改滚动条的样式如定义body中出现的滚动条样式body{SCROLLBAR-ARROW-COLOR:颜色代码;SCROLLBAR-DARKSHADOW-COLOR:颜色代码;SCROLLBAR-BASE-COLOR:颜色代码;}还有其他的样式参数,但觉得没必要用的那么细,所以就贴了三个滚动条样式参数,其他参数Google下也很快很多。

    95
    热度
  • 让您的网站IE8浏览自动用IE7兼容模式

    让你的网站IE8浏览自动用IE7兼容模式 <html> <head> <!--在head标签中加入下面这句就能让IE8跟IE7的样式一样了--> <metahttp-equiv="X-UA-Compatible"content="IE=EmulateIE7"/> <title>MyWebPage</title> </h...

    71
    热度
  • jquery半透明设立

    jquery半透明设置 functionsetOpacity(eles){$(eles).each(function(){if($.browser.msie){$(this).clone().empty().insertAfter($(this)).css({"position":"relative","top":-$(this).height()}).css("z-index",-1).addC...

    100
    热度