2020年5月9日

jq 隐藏,淡出,动画

摘要: 阅读全文

posted @ 2020-05-09 21:10 vermouthmo 阅读(105) 评论(0) 推荐(0)

2020年5月8日

jque

摘要: // 返回顶部 // window.onscroll=function(){ // console.log(screenY); // if(scrollY>100){ // document.getElementById("gd").style.display="block"; // }else{ 阅读全文

posted @ 2020-05-08 18:46 vermouthmo 阅读(234) 评论(0) 推荐(0)

2020年5月7日

DOm知识2 添加删除元素

摘要: // 添加元素 // var ys=document.createElement("p"); // var yb=document.createTextNode("这是新的"); // ys.appendChild(yb) // document.getElementById("first").ap 阅读全文

posted @ 2020-05-07 14:28 vermouthmo 阅读(126) 评论(0) 推荐(0)

2020年4月29日

4-29 js DOM基础知识

摘要: // document.getElementById("xx") id获取名字 $(#xx) // document.getElementsByTagName(xx) 获取标签 $("xx") // document.getElementsByClassName(xx) 获取class $("xx" 阅读全文

posted @ 2020-04-29 16:26 vermouthmo 阅读(114) 评论(0) 推荐(0)

2020年4月27日

js 数组知识

摘要: 数组 // arr.length 数组长度 // arr[元素标] // arr.push 在结尾添加元素 arr.unshift 在开头添加 // arr.pop 删除数组最后一个元素 arr.shift 删除数组第一个元素 // var arr = ["wwwww", 111, true]; / 阅读全文

posted @ 2020-04-27 16:26 vermouthmo 阅读(109) 评论(0) 推荐(0)

2020年4月26日

4-26函数、for循环、if判定

摘要: 匿名函数 var abc = function(){console.log(‘aaa’)} abc() 先定义在使用; // 自执行函数 // !function(){ // console.log("自执行函数");}() // (function(){ // console.log("");}) 阅读全文

posted @ 2020-04-26 16:34 vermouthmo 阅读(161) 评论(0) 推荐(0)

2020年4月25日

4-25 js的赋值和基本判定

摘要: // var i=10; // var y=i++ y=10 赋值 先执行y=i, // var y=++i y=11 赋值先执行i++ // var y=i++; // var y=++i; // var y i; // var y=i +=10; // var y=i-=10; // var h 阅读全文

posted @ 2020-04-25 16:57 vermouthmo 阅读(192) 评论(0) 推荐(0)

2020年4月24日

424 js的引入、调试以及元素类型的转换

摘要: <!-- <script></script> 内部引入--> <!--<script src="..."></script>--外部引入放入这里--> <!-- window.alert(msg) 写入警告框; document.write(msg) 写入 HTML 输出 console.log(m 阅读全文

posted @ 2020-04-24 16:44 vermouthmo 阅读(129) 评论(0) 推荐(0)

2020年4月22日

css手机端知识

摘要: <!--选择器 宽度适应设备加在head meta charset="UTF-8" meta name="viewport" content="width=device-width, initial-scale=1.0" @media screen and (max-width:xxpx) x{ d 阅读全文

posted @ 2020-04-22 10:51 vermouthmo 阅读(247) 评论(0) 推荐(0)

2020年4月21日

4-21 css动画效果

摘要: z-index 位置优先级border radius:xx 圆角 可以写四个值box-shadow 阴影 水平 模糊的距离 模糊的程度 阴影前可加颜色backgroup-origin content-box padding-box border-box 默认图片的开始位置box-sizing:con 阅读全文

posted @ 2020-04-21 17:03 vermouthmo 阅读(100) 评论(0) 推荐(0)

导航