晨风

-------------------- 业精于勤,荒于嬉;行成于思,毁于随

导航

12 2012 档案

摘要:刚刚碰到一个要为html select添加readonly属性的要求,可是select是不支持readonly属性的,找了找,方法还是有的,不过大都比较麻烦。以下的方法个人认为是最简单的:<select id="lstTest" onfocus="this.defaultIndex=this.selectedIndex;" onchange="this.selectedIndex=this.defaultIndex;"><option value="1">test1</option&g 阅读全文

posted @ 2012-12-28 13:55 shenyixin 阅读(337) 评论(0) 推荐(0) 编辑

摘要:class Program { static void Main(string[] args) { zhishuDemo(100); } /// <summary> /// 求质数(素数) /// </summary> /// <param name="n">范围</param> public static void zhishuDemo(int n) { List<int> list = new List<int>()... 阅读全文

posted @ 2012-12-20 13:08 shenyixin 阅读(274) 评论(0) 推荐(0) 编辑

摘要:JS:<body><select name="PaymentType" style="width:110px" > <option value="">请选择 </option> <option value="001">月付</option> <option value="002">半年付</option> <option value="003">年付</optio 阅读全文

posted @ 2012-12-11 16:46 shenyixin 阅读(89481) 评论(0) 推荐(3) 编辑

摘要://新建工作簿 Workbook workbook = new Workbook(); //工作簿 Worksheet sheet = workbook.Worksheets[0]; //工作表 Cells cells = sheet.Cells;//单元格 sheet.Protect(ProtectionType.All, "123123", "");//保护工作表 sheet.Protection.IsSelectingLockedCellsAllowed = false;//设置只能选择解锁单元格 sheet.Protection.IsFormat 阅读全文

posted @ 2012-12-06 12:50 shenyixin 阅读(588) 评论(0) 推荐(0) 编辑