- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 js 缩略正文图片
<br />function suotu(){ var size = 600; var objs = document.getElementsByTagName("img");for(i=0;i<objs.length;i++){ if (objs[i].width > objs[i] .height) { if (objs[i].width > size) objs[i].width = size; } else { if (objs[i].height > size) obj
2011-04-25 09:14:00 535
原创 .net 根据模板生成新的htm页面
public string getStatePage(string title, string content) { //思路是替换掉模板中的特征字符 string mbPath = Server.MapPath("pro.htm"); Encoding code = Encoding.GetEncoding("UTF-8"); StreamReader sr = null; StreamWriter sw
2011-04-22 14:43:00 777
原创 .net获取html字符串中的第一个图片
public static string GetFirstImages(string htmlText) { const string pattern = ""; const string pattern1 = "src//s*=//s*((/"|')?)(?//S+)(/"|')?[^>]*"; string s = null; Match match = Regex.Match(htmlText, pattern, R
2011-04-22 14:41:00 1679 1
原创 .net 上传图片
/// /// 上传图片 /// /// /// public string UpImg(FileUpload file) { string filename; string filepath; string fileext; filename = file.PostedFile.FileName; filename = Path.GetFileNam
2011-04-22 14:39:00 679
原创 .net 修改上传图片的宽高
try { System.Drawing.Image image = System.Drawing.Image.FromFile(path); ImageFormat thisFormat = image.RawFormat; int fixWidth = 708; int fixHeight = 390; /
2011-04-22 14:37:00 1408 1
jQuery带事件记录的多功能日历
2013-10-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人