04 2013 档案
获取元素offset的方法
摘要:function getoffset(e) { var t = e.offsetTop; var l = e.offsetLeft; while (e = e.offsetParent) { t += e.offsetTop; l += e.offsetLeft; } var result = {}; result.offsetTop = t; result.offsetLeft = l; return result; } 阅读全文
posted @ 2013-04-28 16:25 袁晓平 阅读(228) 评论(0) 推荐(0)
C#处理缩略图的算法
摘要:private byte[] thumbnail(HttpContext context, byte[] bytes) { //System.Drawing.Image thumbnail_image = null; System.Drawing.Image original_image = null; System.Drawing.Bitmap final_image = null; System.Drawing.Graphics graphic = null; Stream s = new MemoryStream... 阅读全文
posted @ 2013-04-27 16:40 袁晓平 阅读(223) 评论(0) 推荐(0)
iframe里的页面在ie6里出现滚动条的解决办法
摘要:iframe里的页面加了:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">在IE6里显示会出现滚动条,但在IE8里不会,可以加上以下样式:<style> html,body { margin: 0px; padding: 0px; width: 98%; height: 100%; ... 阅读全文
posted @ 2013-04-15 17:33 袁晓平 阅读(133) 评论(0) 推荐(0)
codesmith entity模板for enterprise library 5
摘要:<%@ CodeTemplate Language="C#" TargetLanguage="T-SQL" Debug="true" CompilerVersion="v3.5" Description="" %> <%@ Assembly Name="SchemaExplorer" %><%@ Property Name="SourceTable" Type="SchemaExplorer.TableSchema& 阅读全文
posted @ 2013-04-11 18:20 袁晓平 阅读(228) 评论(0) 推荐(0)
codesmith dao模板for enterprise library 5
摘要:<%@ CodeTemplate Language="C#" TargetLanguage="T-SQL" Debug="true" CompilerVersion="v3.5" Description="" %> <%@ Assembly Name="SchemaExplorer" %><%@ Import Namespace="System" %><%@ Import Namespace="Syste 阅读全文
posted @ 2013-04-11 18:19 袁晓平 阅读(256) 评论(0) 推荐(0)