`
hsyd
  • 浏览: 173391 次
  • 性别: Icon_minigender_1
  • 来自: 淄博
社区版块
存档分类
最新评论
文章列表
//css #wrap { position: absolute; width:500px; height:200px; left:50%; top:50%; margin-left:-250px; /*设置为宽度的一半*/ margin-top:-100px; /*设置为高度的一半*/ } <div id="wrap"> <center>内容</center> </div>

雨OR雪

  今早下楼一看地上湿漉漉的,昨晚应该是下了下雨。到了郊外发现白白的一片。。。甚是壮观 难道郊外下雪了??? 下车后才发现是冰渣...
<style type="text/css"> #loading-mask{ position:absolute; left:0; top:0; width:100%; height:100%; z-index:20000; background-color:white; } #loading{ position:absolute; left:45%; ...
String fileName = new String("变电站.doc".getBytes("GBK"),"ISO8859-1");
cell.setEncoding(HSSFCell.ENCODING_UTF_16); cell.setCellValue("中文");
ActionContext ac = ActionContext.getContext(); ServletContext sc = (ServletContext) ac.get(ServletActionContext.SERVLET_CONTEXT); String path = sc.getRealPath("/");
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> 函数 描述 fn:contains(string, substring) 如果参数string中包含参数substring,返回true fn:containsIgnoreCase(string, substring) 如果参数string中包含参数substring(忽略大 ...
  刚刚接触oracle,在程序中要比较日期,直接比较竟然报文字与格式字符串不匹配。查了下原来才知道要加to_date函数。例:WHERE (rq>= to_date('2008-09-01', 'yyyy.mm.dd')
select * from user_constraints where constraint_name='name'
SQL中的单记录函数 1.ASCII 返回与指定的字符对应的十进制数; SQL> select ascii(’A’) A,ascii(’a’) a,ascii(’0’) zero,ascii(’ ’) space from dual; A A ZERO SPACE --------- --------- --------- --------- 65 97 48 32 2.CHR 给出整数,返回对应的字符; SQL> select chr(54740) zhao,chr(65) chr65 from dual; ZH C -- - 赵 A 3.CONCAT ...
function SetCookie(name,value)//两个参数,一个是cookie的名子,一个是值 { var Days = 365; //此 cookie 将被保存 365 天 var exp = new Date(); //new Date("December 31, 9998"); exp.setTime(exp.getTime() + Days*24*60*60*1000); document.cookie = name + "="+ escape (value) + ";e ...
  此功能实现我觉着有两种方法可行:    一:当用户点击保存密码登录成功后向数据库插入此台机器的IP+登录用户名+密码,下次用户登录时根据IP去数据库查询,反之则删除数据库中的记录。(如果员工知道领导的IP,那。。。呵呵,缺陷啊)    二:利用Cookie // 存cookie Cookie user = new Cookie("User_Name", "hsyd"); Cookie pass = new Cookie("Password", "hs ...
window.location.reload();
sheet.autoSizeColumn(( short ) 0 );
HSSFCellStyle cellStyle = wb.createCellStyle(); cellStyle.setDataFormat(HSSFDataFormat.getBuiltinFormat("m/d/yy h:mm")); cell = row.createCell((short)1); cell.setCellValue(new Date()); cell.setCellStyle(cellStyle);
Global site tag (gtag.js) - Google Analytics