12 2010 档案

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

posted @ 2010-12-30 21:32 砖头 阅读(21) | 评论 (0) 编辑

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

posted @ 2010-12-23 17:27 砖头 阅读(43) | 评论 (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 砖头 阅读(151) | 评论 (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 砖头 阅读(395) | 评论 (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 砖头 阅读(127) | 评论 (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 砖头 阅读(195) | 评论 (0) 编辑

导航

<2010年12月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

公告

昵称:砖头
园龄:6年2个月
粉丝:0
关注:1

搜索

 
 

常用链接

随笔分类

随笔档案

文章分类

最新评论

阅读排行榜

评论排行榜

推荐排行榜