- 博客(14)
- 收藏
- 关注
转载 YUI css样式重置表
找了body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { margin:0; padding:0; } table { border-collapse:collapse;
2014-04-08 17:25:09 600
转载 (转)CSS架构
CSS架构感谢 sou6 的投递 时间:2012-12-11 来源:伯乐在线 邮箱投稿Philip Walton 在AppFolio担任前端工程师,他在Santa Barbara on Rails的聚会上提出了CSS架构和一些最佳实践,并且在工作中一直沿用。擅长CSS的Web开发人员不仅可以从视觉上复制实物原型,还可以用代码进行完美的呈现。无需使用表格、尽
2014-04-08 16:50:51 471
转载 footer 在页面对底部
测试底部footerhtml, body{height:100%;}#container {min-height:100%; /*使内容高度和body一样*/margin-bottom:-80px;/*向上缩减80像素,不至于footer超出屏幕可视范围*/}#content {padding-bottom:150px; /*这个是关键,处理页面高度超出屏幕可视范围时,控制内容
2014-03-25 16:20:41 466
原创 dwr调用参数为 对象数组 的方法(js中直接传递obj数组)
本文侧重点在js部分,前提是写过简单的dwr,dwr简单实例,各种配置网上都有。js代码:function M2mDto(guid,moduleID,memberID,type){ this.guid=guid; this.moduleID=moduleID; this.memberID=memberID; th
2014-03-18 17:30:37 611
转载 理解spring的BeanDefinition和配置文件(原文标题:动态注册bean到spring容器)
拷贝地址:http://coolex.info/blog/253.html。原先的设计是通过已有的库,将数据通过rmi写入到远程服务器;现在有需求需要将支持多个,而且是自定义的远程服务器ip。因为整个接口原先都是通过spring配置文件,包括rmi的地址。同时,为了维护方便,不能直接将打好的jar包拿过来改,于是就采用了复制原有的bean definition,动态注册新的
2014-01-16 17:59:48 2487
转载 dwr简单使用实例
1. 下载jar包:dwr.jar2.WEB-INF下的web.xml文件: dwr-invoker org.directwebremoting.servlet.DwrServlet debug true 1 dwr-invoker /dwr/* 3.被操作的类的方法:@Servicepublic cl
2014-01-06 15:27:44 511
原创 简单易用兼容好的分页(改进)
效果:html:css:#page{ font-size: 14px; clear: both; padding-top: 1.45em; white-space: nowrap;}#page a{ background: white; border: 1px solid #E7ECF0; display: inline-block; height: 2
2013-12-27 11:35:13 436
转载 struts2多文件上传
import java.io.File; import org.apache.commons.io.FileUtils; import org.apache.struts2.ServletActionContext; public class FileUpload { private File[] image;//获取上传文件 private Strin
2013-12-16 17:02:05 453
原创 简单易用兼容好的分页(1)
开始用到分页的时候用了一个分页插件,后来在开发环境中总是出问题,页面布局样式出问题,记得以前看视频自学的时候就听到一个老师说过他们的分页也是自己做的,分页插件也用过,但是出问题,当时没注意,现在才意识到,废话不多说,代码:html:样式:#page{ font-size: 14px; clear: both; padding-top: 1.45em; whi
2013-12-16 15:02:43 489
原创 div垂直居中
代码:$(function(){ var warp_div = $(".wrap_div"); var inner_div = $(".inner_div"); vertical_center(wrap_div,inner_div); $(document).resize(function(){ vertical_center(wrap_div,inne
2013-11-20 09:08:30 655
转载 struts2 最基本的文件上传(struts2)
package cn.xxx.action;import java.io.File;import org.apache.commons.io.FilenameUtils;import org.apache.struts2.ServletActionContext;import org.springframework.context.annotation.Scope;import or
2013-11-15 15:09:42 706
转载 java 下载图片
/** * @param strUrl * @param finleName * **/ public static void downImgFromUrl(String strUrl,String fileName){ URL url=null; InputStream in=null; OutputStream out=null; try { url=n
2013-11-15 11:15:49 711
转载 Java 压缩图片
/** * 压缩图片方法 * * @param oldFile * 将要压缩的图片 * @param width * 压缩宽 * @param height * 压缩高 * @param quality * 压缩清晰度 建议为1.0 * @param smallIc
2013-11-15 10:59:28 773
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人