2016年7月10日

CSS里面position:relative与position:absolute 区别

摘要: position:absolute这个是绝对定位;是相对于浏览器的定位.比如:position:absolute;left:20px;top:80px; 这个容器始终位于距离浏览器左20px,距离浏览器上80px的这个位置.position:relative是相对定位,是相对于前面的容器定位的.这个 阅读全文

posted @ 2016-07-10 17:05 小豫 阅读(130) 评论(0) 推荐(0) 编辑

JSP页面规格化

摘要: http://doc.okbase.net/%E4%BA%BA%E7%94%9F%E9%9A%BE%E5%BE%97%E7%B3%8A%E6%B6%82/archive/123084.html http://huxiao.iteye.com/blog/470680 阅读全文

posted @ 2016-07-10 15:36 小豫 阅读(146) 评论(0) 推荐(0) 编辑

iframe自适应高度

摘要: <iframe style="position: absolute;height:100%" ></iframe> 阅读全文

posted @ 2016-07-10 11:30 小豫 阅读(110) 评论(0) 推荐(0) 编辑

getElementByTagName的使用

摘要: getElementByTagName的使用 dfdfd dfdfd dfdfd 阅读全文

posted @ 2016-07-10 10:43 小豫 阅读(461) 评论(0) 推荐(0) 编辑

div左右居中

摘要: margin:auto; 阅读全文

posted @ 2016-07-10 10:34 小豫 阅读(129) 评论(0) 推荐(0) 编辑

2016年7月9日

@注解与普通web.xml的关系

摘要: @WebServlet(name = "SimpleServlet" ,urlPatterns = {"/simple"}) public class SimpleServlet extends HttpServlet{ … } @WebFilter(filterName="CommonFliter",urlPatterns="") SimpleServlet ... 阅读全文

posted @ 2016-07-09 16:48 小豫 阅读(558) 评论(0) 推荐(0) 编辑

2016年6月27日

显示几秒内跳转

摘要: Untitled Document 2 阅读全文

posted @ 2016-06-27 17:12 小豫 阅读(208) 评论(0) 推荐(0) 编辑

2016年6月25日

js如何获取某id的子标签

摘要: 思路:根据id获取父对象,然后使用childNodes获取所有子对象数组,关键代码: 实例演示:点击按钮将为id为test的div标签的所有子标签添加red类,即字体显示为红色 1、HTML结构 2、css样式 3、javascript代码 4、前后对比效果如下 阅读全文

posted @ 2016-06-25 14:19 小豫 阅读(16065) 评论(0) 推荐(0) 编辑

2016年6月21日

common upload乱码

摘要: request.setCheracterEncoding("utf-8"); DiskFileUpload.setHeaderEncoding("utf-8"); FileItem.getString("utf-8"); 上面这三个地方设置好之后就应该解决了。 package onlineTest.server; import java.io.File; import ... 阅读全文

posted @ 2016-06-21 11:27 小豫 阅读(346) 评论(0) 推荐(0) 编辑

2016年6月19日

预览上传图片

摘要: 转自:http://canglang0.iteye.com/blog/1662268 图片上传预览 阅读全文

posted @ 2016-06-19 19:50 小豫 阅读(190) 评论(0) 推荐(0) 编辑

导航