摘要: 基本上配合我以前所发的:Html+css小技巧收集,制作网页中经常 .. 和浏览器兼容性测试工具 可以做到所向无敌。 CSS HACK以下两种方法几乎能解决现今所有HACK. 1, !important 随着IE7对!important的支持, !important 方法现在只针对IE6的HACK.(注意写法.记得该声明位置需要提前.) CSS代码 引用 <style> #wrapper { width: 100px!important; /* IE7+FF */ width: 80px; /* IE6 */ } </style> 2, IE6/IE77对FireFox 阅读全文
posted @ 2011-06-02 09:51 易独 阅读(177) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Data; using System.Data.Common; using System.Configuration;namespace MyDBHelper{ public class DBHelper { private static string dbProviderName = ConfigurationManager.AppSettings["DbHelperProvider"]; private static string dbConnectionString = ConfigurationManager.A 阅读全文
posted @ 2011-06-02 01:18 易独 阅读(406) 评论(0) 推荐(0) 编辑
摘要: C#打印(PrintDocument、PrintDialog、PageSetupDialog、PrintPreviewDialog) 这几天一直在弄C#打印,下面整理过后的打印范例,主要介绍了PrintDocument的主要属性、方法的应用。及打印过程中可能用的到得PrintDialog、PageSetupDialog、PrintPreviewDialog对话框。代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;u 阅读全文
posted @ 2011-06-02 01:17 易独 阅读(1469) 评论(4) 推荐(1) 编辑
摘要: 这个类是我之前在一个什么地方看到的不记得了,最近要用着大文件上传,翻箱倒柜的找出来。view sourceprint?using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; namespace WindowsForms { public class FTPClient { #region 构造函数 /// /// 构造函数 /// /// private s. 阅读全文
posted @ 2011-06-02 01:16 易独 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1 using System.Runtime.Serialization.Formatters.Binary;2 using System.IO;3 4 //序列化是将对象状态转换为可保持或传输的格式的过程。5 //与序列化相对的是反序列化,它将流转换为对象。这两个过程结合起来,可以轻松地存储和传输数据。6 public class Serialize7 {8 #region 二进制序列化9 public static MemoryStream SerilaizeBinary(Object obj)//对象转内存流10 {11 MemoryStream memStream = new Memo 阅读全文
posted @ 2011-06-02 00:55 易独 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 接触Web开发也已经有一段时间了,对javascript的认识也比以前有了更加深入的认识了,所以觉得应该整理一下。一、JavaScript不支持函数(方法)的重载,用一个例子证明如下: function add(number) { alert('hello'); } function add(number1, number2) { alert('world'); } 此时调用add(1),会弹出'world',而不是'hello',由此现象说明写在文档后面的方法会覆盖掉前面的方法,所以有一个我认为暂时是正确的原则,就是如果方法名相 阅读全文
posted @ 2011-06-02 00:52 易独 阅读(324) 评论(0) 推荐(0) 编辑
乐巴儿 一个有声音的公众号
长按,识别二维码,加关注