2012年10月7日
摘要: 首先要加的是这些属性{height:value;width:value;overflow:hidden;white-space: nowrap;text-overflow:ellipsis;}加高度这些文字过长就不会往下面跑,直接隐藏掉。加white-space: nowrap才能显示出省略号,不加就是显示不出来 阅读全文
posted @ 2012-10-07 10:54 仙梦之飘 阅读(2942) 评论(0) 推荐(0) 编辑
  2012年8月9日
摘要: 类型前缀示例数组aaValues布尔型bbFound浮点型(数字)ffValue函数fnfMethod整形(数字)iiValue对象ooType正则表达式rerePattern字符串ssValue变型(可以是任何类型)vvValue 阅读全文
posted @ 2012-08-09 11:42 仙梦之飘 阅读(129) 评论(0) 推荐(0) 编辑
  2012年7月25日
摘要: 1. CSS “float” 属性:IE 语法:document.getElementById("header").style.styleFloat = "left";Firefox 语法:document.getElementById("header").style.cssFloat = "left";2. 元素的计算样式:IE 语法:var myObject = document.getElementById("header");var myStyle = myObject.currentS 阅读全文
posted @ 2012-07-25 10:27 仙梦之飘 阅读(156) 评论(0) 推荐(0) 编辑
  2012年7月14日
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
posted @ 2012-07-14 23:31 仙梦之飘 阅读(532) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文
posted @ 2012-07-14 22:23 仙梦之飘 阅读(316) 评论(0) 推荐(0) 编辑
  2012年7月8日
摘要: 只要在页面头部加上<script type="text/javascript" src="http://getfirebug.com/firebug-lite.js"></script>就可以使用这个firebug 阅读全文
posted @ 2012-07-08 11:16 仙梦之飘 阅读(156) 评论(0) 推荐(0) 编辑
  2012年7月6日
摘要: create proc up_GetPageData@pi int --页码@ps int --页容量asbeginselect * from (select ROW_NUMBER() over(order by id) as RNum,*from table) as tempwhere RNum>(@pi-1)*@ps and RNum<=@pi*@psend再来执行这一条语句execup_GetPageData 1,4 阅读全文
posted @ 2012-07-06 23:18 仙梦之飘 阅读(112) 评论(0) 推荐(0) 编辑
  2012年6月12日
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文
posted @ 2012-06-12 16:05 仙梦之飘 阅读(310) 评论(0) 推荐(0) 编辑
  2012年6月8日
摘要: 按时间查询最近的阶段并显示5条数据:select top 5字段 from表 order by字段的时间 desc分页的高效率的语句:SELECT *from(SELECT Id, UserName, Age, Sex, IsVIP,row_number() over(order by id) rownum FROM dbo.T_USERS)twhere t.rownum>@startRowIndex and t.rownum<=@startRowIndex+@maximunRows 阅读全文
posted @ 2012-06-08 23:35 仙梦之飘 阅读(136) 评论(0) 推荐(0) 编辑
  2012年6月6日
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文
posted @ 2012-06-06 23:08 仙梦之飘 阅读(1109) 评论(0) 推荐(0) 编辑