CSS中background的用法
摘要:CSS中 background 是一个很基本的而且比较常用的样式 background : background-color || background-image || background-repeat || background-attachment || background-size ||
阅读全文
posted @
2016-02-20 11:33
子了
阅读(4830)
推荐(0) 编辑
javascript中的insertBefore方法
摘要:DEMO1:默认添加在文档的最后 Html代码 <SCRIPT LANGUAGE="JavaScript"> window.onload=function(){ var a =document.createElement("span"); var b =document.createTextNode
阅读全文
posted @
2016-02-20 10:18
子了
阅读(7662)
推荐(0) 编辑
js实现页面跳转的几种方式
摘要:第一种: <script language="javascript" type="text/javascript"> window.location.href="login.jsp?backurl="+window.location.href; </script>第二种: <script langu
阅读全文
posted @
2016-02-19 17:59
子了
阅读(271)
推荐(0) 编辑
手机端html5触屏事件(touch事件)
摘要:touchstart:触摸开始的时候触发touchmove:手指在屏幕上滑动的时候触发touchend:触摸结束的时候触发而每个触摸事件都包括了三个触摸列表,每个列表里包含了对应的一系列触摸点(用来实现多点触控):touches:当前位于屏幕上的所有手指的列表。targetTouches:位于当前D
阅读全文
posted @
2016-02-19 17:07
子了
阅读(514)
推荐(0) 编辑
ajax的两种应用方式
摘要:<!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
子了
阅读(162)
推荐(0) 编辑
JQuery获取浏览器窗口的高度和宽度
摘要:<script type="text/javascript">$(document).ready(function(){alert($(window).height()); //浏览器时下窗口可视区域高度alert($(document).height()); //浏览器时下窗口文档的高度alert
阅读全文
posted @
2016-02-19 16:23
子了
阅读(230)
推荐(0) 编辑