`
文章列表
基础Constants struts.devMode  可选值true,false (默认false),在开发模式下,struts2的动态重新加载配置和资源文件的功能会默认生效。同时开发模式下也会提供更完善的日志支持。 struts.i18n.reload 可选值true,false(默认值依赖于strut ...
强制不换行 div{ white-space:nowrap; }  自动换行 div{ word-wrap: break-word; word-break: normal; }  强制英文单词断行 div{ word-break:break-all; }  

ajax全局事件详解

    博客分类:
  • ajax
jquery在ajax方面是非常强大和方便的,以下是jquery进行ajax请求时方法模板: $.ajax({            type: "get",            url: "",                    
  body{_position:absolute; _top:expression(offsetParent.scrollTop);} #sidenav { width: 300px; position: fixed; /*--Fix the sidenav to stay in one spot--*/ float: left; /*--Keeps sidenav into place when Fixed positioning fails--*/ _position:absolute; _top:expression(offsetParen ...
CSS Reset (CSS固定样板): /* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, ...
<!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> <title>仿淘宝网的最近浏览记录功能</title> <meta http-equiv="co ...
cookie的浏览记录功能 script: /********************** function : oCookieRecord author : Der [http://hi.baidu.com/jasyyy] lastodify : 2010-04-22 ***********************/ //setCookie function setCookie(name, value, days, path, domain, secure) { var sCookie = name + "=" + encod ...
<!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>按需加载的图片</title> <style type="text/css"> img{background:url(loading.gif) no-repeat 50% 50%;} </style> </head> &l ...
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8&qu ...
Properties文件-增删改查【转载】 package com.common.util; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Hashtable; import java.util.Properties; import org.apache.log4j.Logger; /** * * 功能描述:动态读取配置文件来加载属 ...
download http://dl.dbank.com/c0ixfbqjep
<!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; char ...

Java文件操作详解

    博客分类:
  • java
  Java文件操作详解  常用的方法:    exists()         用来判断文件或目录是否在硬盘存在   isDirectory()    判断是否是目录   isFile()         判断是否是文件   mkdir()          创建目录   mkdirs()   ...
css: body{ background-image:url(bg.jpg); background-position:center; background-attachment:fixed;} .con{ width:500px; height:400px; margin:0px auto; opacity: 0.65;-moz-opacity: 0.65;filter:alpha(opacity=65);background:#fff;} .con p{ position:relative;}    html: <div class="con& ...
CSS强制英文、中文换行与不换行[转载] .p1{ word-break:break-all; width:150px;}/*只对英文起作用,以字母作为换行依据*/ .p2{ word-wrap:break-word; width:150px;}/*--只对英文起作用,以单词作为换行依据*/ .p3{white-space:pre-wrap; width:150px;}/*只对中文起作用,强制换行*/ .p4{white-space:nowrap; width:10px;}/*强制不换行,都起作用*/ .p5{white-space:nowrap; over ...
Global site tag (gtag.js) - Google Analytics