摘要: 本文出自张旭鑫博客,要知详情,请戳右侧地址:http://www.zhangxinxu.com/wordpress/?p=5120 一、温故而知新 很多年以前,稍等,让我搜一下contenteditable(右上角),哈,是2010年的时候,写了篇文章“div模拟textarea文本域轻松实现高度自 阅读全文
posted @ 2016-04-21 14:45 子了 阅读(4902) 评论(0) 推荐(0) 编辑
摘要: CSS中 background 是一个很基本的而且比较常用的样式 background : background-color || background-image || background-repeat || background-attachment || background-size || 阅读全文
posted @ 2016-02-20 11:33 子了 阅读(4808) 评论(0) 推荐(0) 编辑
摘要: DEMO1:默认添加在文档的最后 Html代码 <SCRIPT LANGUAGE="JavaScript"> window.onload=function(){ var a =document.createElement("span"); var b =document.createTextNode 阅读全文
posted @ 2016-02-20 10:18 子了 阅读(7626) 评论(0) 推荐(0) 编辑
摘要: 第一种: <script language="javascript" type="text/javascript"> window.location.href="login.jsp?backurl="+window.location.href; </script>第二种: <script langu 阅读全文
posted @ 2016-02-19 17:59 子了 阅读(269) 评论(0) 推荐(0) 编辑
摘要: touchstart:触摸开始的时候触发touchmove:手指在屏幕上滑动的时候触发touchend:触摸结束的时候触发而每个触摸事件都包括了三个触摸列表,每个列表里包含了对应的一系列触摸点(用来实现多点触控):touches:当前位于屏幕上的所有手指的列表。targetTouches:位于当前D 阅读全文
posted @ 2016-02-19 17:07 子了 阅读(513) 评论(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.or 阅读全文
posted @ 2016-02-19 16:27 子了 阅读(161) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript">$(document).ready(function(){alert($(window).height()); //浏览器时下窗口可视区域高度alert($(document).height()); //浏览器时下窗口文档的高度alert 阅读全文
posted @ 2016-02-19 16:23 子了 阅读(229) 评论(0) 推荐(0) 编辑