上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 当标签高度大于字体高度时,文字会偏高,可以设置css的height和line-height大小相同,此方法只适合单行居中 阅读全文
posted @ 2012-06-28 01:45 Bug山Bug海 阅读(1911) 评论(0) 推荐(0)
摘要: 有时候页面中的中文打开后变成乱码,主要是编码问题在DOCTYPE标签后加入<meta http-equiv="content-type" content="text/html; charset=utf-8" />charset对应页面的编码,不一定是utf-8,也可能是gb2312,gbk等,根据实际情况修改HTML header结构<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/htm 阅读全文
posted @ 2012-06-27 21:05 Bug山Bug海 阅读(2186) 评论(0) 推荐(0)
摘要: #region Types public enum Countries { USA, Italy, } public class Customer { public string Name {get;set;} public string City { get; set; } public Countries Country { get; set; } public Order[] Orders { get; set; } public override st... 阅读全文
posted @ 2012-06-27 00:28 Bug山Bug海 阅读(176) 评论(0) 推荐(0)
摘要: public class Category { public int IdCategory { get; set; } public string Name { get; set; } } public class Product { public string IdProduct { get; set; } public int IdCategory { get; set; } public string Description { get; set; } } class Pro... 阅读全文
posted @ 2012-06-26 20:34 Bug山Bug海 阅读(182) 评论(0) 推荐(0)
摘要: function Person(properties) { for (var item in properties) { //必须放在匿名函数内分离作用域,不然每个p会是最后一项item的值 (function (which) { //记住这个作用域内的值 var p = item; which["Get" + p] = function () { return properties[p]; }; which["Set" + p] = ... 阅读全文
posted @ 2012-06-25 22:53 Bug山Bug海 阅读(138) 评论(0) 推荐(0)
摘要: http://www.fengfly.com/plus/view-195899-1.htmluse_outer_join 参数已弃用,尝试使用会抛出异常 阅读全文
posted @ 2012-05-25 20:57 Bug山Bug海 阅读(165) 评论(0) 推荐(0)
摘要: 语法解释:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").find("option:selected").text(); //获取Select选择的Text3. var checkValue=$("#select_id").val(); //获取Select选择的Value4. var checkIndex=$("#select_id &qu 阅读全文
posted @ 2012-05-20 22:47 Bug山Bug海 阅读(303) 评论(0) 推荐(0)
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head><title>无标题 1</title><script type="text/javascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script></head><body><form method="post"><select id="s2" 阅读全文
posted @ 2012-05-20 20:26 Bug山Bug海 阅读(428) 评论(0) 推荐(0)
摘要: create table Cart( [UserID] uniqueidentifier not null, [ProductID] int not null, [ProductName] varchar(80) not null, [Price] [decimal](10, 2) NOT NULL, [ImagePath] [varchar](100) NULL, Quantity int not null, IsAnonymous bit not null)alter table Cartadd constraint [PK_Cart] primary key CLUSTERED([USe 阅读全文
posted @ 2012-05-06 14:03 Bug山Bug海 阅读(187) 评论(0) 推荐(0)
摘要: HttpUtility 的静态方法用于处理编码解码等 阅读全文
posted @ 2012-05-04 18:19 Bug山Bug海 阅读(167) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页