09 2019 档案
摘要:1、first-child first-child表示选择列表中的第一个标签。例如:li:first-child{background:#fff} 2、last-child last-child表示选择列表中的最后一个标签,例如:li:last-child{background:#fff} 3、nt
阅读全文
摘要:在js和jquery使用中,经常使用到页面加载完成后执行某一方法。通过整理,大概是五种方式(其中有的只是书写方式不一样)。 1:使用jQuery的$(function){}; 2:使用jquery的$(document).ready(function(){}); 前两者本质上没有区别,第1种是第2种
阅读全文
摘要:首先定义一个div。 然后稍微装修一下 下面开始区分 一、clientWidth和clientHeigh 、 clientTop和clientLeft 1,clientWidth的实际宽度 clientWidth = width+左右padding 2,clientHeigh的实际高度 client
阅读全文