上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页

2009年9月5日

解决FF与IE对HR的解释

摘要: hr{display:block;height:1px;border:none;border-top:1px solid #999999;margin:0px 0px !important; margin:0px 0 -14px 0;float:none !important; float:left;} 阅读全文

posted @ 2009-09-05 17:09 韩显川 阅读(195) 评论(0) 推荐(0)

2009年9月4日

使用C#扫描局域网

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Net;using System.Net.NetworkI... 阅读全文

posted @ 2009-09-04 15:46 韩显川 阅读(724) 评论(0) 推荐(0)

获得用户的Application Data文件夹位置

摘要: 当前用户string path1 = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);所有用户string path2 = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData); 阅读全文

posted @ 2009-09-04 09:17 韩显川 阅读(1119) 评论(0) 推荐(0)

2009年9月3日

C# FileStream复制大文件

摘要: 即每次复制文件的一小段,以节省总内存开销。当然,本机复制也可以采用.NET内部的System.IO.File.Copy方法。 [代码] 阅读全文

posted @ 2009-09-03 15:14 韩显川 阅读(450) 评论(0) 推荐(0)

Stream 和 文件之间的转换

摘要: /// <summary> /// 将 Stream 写入文件 /// </summary> public void StreamToFile(Stream stream, string fileName) { // 把 Stream 转换成 byte[] byte[] bytes = new byte[stream.Length]; stream.Read(byt... 阅读全文

posted @ 2009-09-03 15:00 韩显川 阅读(545) 评论(0) 推荐(0)

Stream 和 byte[] 之间的转换

摘要: /// <summary> /// 将 Stream 转成 byte[] /// </summary> public byte[] StreamToBytes(Stream stream) { byte[] bytes = new byte[stream.Length]; stream.Read(bytes, 0, bytes.Length); // 设置当前流的位置为流的... 阅读全文

posted @ 2009-09-03 14:58 韩显川 阅读(214) 评论(0) 推荐(0)

XHTML CSS 常见问题和解决方案

摘要: 来自:http://www.cnblogs.com/leavingme/archive/2008/12/03/1347008.html1、如何定义高度很小的容器? 在IE6下无法定义小高度的容器,是因为有一个默认的行高。 列举2种解决方案:ovoverflow:hidden ¦ line-height:0 2、图片下方出现几像素的空白间隙? 这个也有多种解决方案,如将img定义为disp... 阅读全文

posted @ 2009-09-03 10:45 韩显川 阅读(157) 评论(0) 推荐(0)

实现CSS跨浏览器

摘要: 一、padding和margin问题:ul标签中FF中有个padding值,却没有margin值,而在IE中正好相反。解决方法:将ul的padding和margin都设为0(也可以不是0)如:padding:0;margin:0;list-style:none;另外form默认在IE中也会有margin值,所以最好也将其margin和padding设为0。 二、cursor问题:IE中cursor... 阅读全文

posted @ 2009-09-03 10:08 韩显川 阅读(168) 评论(0) 推荐(0)

DIV+CSS浏览器兼容性分析

摘要: 1、用!important语法解决IE和其它浏览器之间的布局差别   !important是CSS1定义的语法,作用是提高指定样式规则的应用优先权。目前IE一不支持这个语法,而其他的浏览器则都支持。可以利用这一点来定义不同浏览器间的CSS样式。如下样式:  .sidebar{ border:5px dotted #FC5 !important ; border:5px dotted #00F; p... 阅读全文

posted @ 2009-09-03 08:09 韩显川 阅读(160) 评论(0) 推荐(0)

2009年9月2日

C# 强制退出程序

摘要: 转自:http://hi.baidu.com/%CD%E6%CA%AF%CD%B7%B5%C4%D0%A1%BA%A2/blog/item/8944f0faafa16a6c034f56c5.html强制退出WinForm程序之Application.Exit和Environment.Eixt 这几天在做一个把大量Infopath生成的XML数据,进行处理的程序,我用了MDI子窗体,每个 窗体包含了... 阅读全文

posted @ 2009-09-02 18:10 韩显川 阅读(1138) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页

导航