12 2010 档案

CSS样式IE8兼容IE7
摘要:解决办法:在每个页面增加这句meta http-equiv="x-ua-compatible" content="ie=7" / 阅读全文

posted @ 2010-12-30 21:32 砖头 阅读(133) 评论(0) 推荐(0)

CSS样式防止图片撑开固定样式
摘要:.img{ /*防止图片过大撑开*/ max-width:600px;/* Other */ _width:expression((this.offsetWidth 600) ? "600px" : this.offsetWidth+"px" );/* IE */ } 阅读全文

posted @ 2010-12-23 17:27 砖头 阅读(263) 评论(0) 推荐(0)

document.body.appendChild 的问题
摘要:IE只有页面完全读取结束body元素才会存在,所以在页面中插入上面这条语句在IE下就会出现错误,而FF下的实现机制是当页面还没有完全读取完时body元素就已经存在了。因此firefox下面正常,而ie下就有问题。 解决方法:1.使用window.onload方法2.把document.body.appendChild 语句放在body后面3.用setTimeout延迟document.body.appendChild 4.用insertBefore 阅读全文

posted @ 2010-12-19 14:37 砖头 阅读(925) 评论(0) 推荐(0)

页面不刷新,表单提交到弹出窗口或Iframe
摘要:提交到弹出窗口: document.form1.action = "Save.aspx"; window.open("", 'win', 'width=420px,height=300px,resizable=yes,top=50px,left=200px,toolbar=no, menubar=no, location=no, status=no'); document.form1.target... 阅读全文

posted @ 2010-12-04 03:13 砖头 阅读(1301) 评论(0) 推荐(0)

JavaScript表单提交到弹出窗口(转帖)
摘要:方法: 用window.open弹出一个窗口,通过第二个参数设置它的name, 让form的target等于这个name就可以了,这样就提交到这个窗口中了 document.formfind.action="drawingreport.jsp"; window.open("",'win','width=720px,height=600px,resizable=yes,top=50px,left... 阅读全文

posted @ 2010-12-03 03:47 砖头 阅读(785) 评论(0) 推荐(0)

asp.net后台获取前台html控件的值的方法(转帖)
摘要:protected void Button1_Click(object sender, EventArgs e){ System.Collections.Specialized.NameValueCollection nc = new System.Collections.Specialized.NameValueCollection(Request.Form); Response.Write(n... 阅读全文

posted @ 2010-12-03 03:19 砖头 阅读(528) 评论(0) 推荐(0)

导航