js
lian_butaiyou
这个作者很懒,什么都没留下…
展开
-
关于jQuery的dom操作
console.log((".span").parent());选择第一个父元素//console.log((".span").parent()); 选择第一个父元素 // console.log((".span").parent());选择第一个父元素//console.log((".span").parents()); 选择所有对的额父元素 // console.log($(...原创 2020-01-09 15:39:09 · 85 阅读 · 0 评论 -
瀑布流
<style> .cont{margin: 0 auto;position: relative;} .box{float:left;padding: 6px;} .imgbox{border: solid 1px black;border-radius: 6px;padding: 6px;} .imgbox img{width:200px;di...原创 2019-12-27 16:18:11 · 87 阅读 · 0 评论 -
拖拽的进度条
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title>...原创 2019-12-20 16:37:56 · 474 阅读 · 0 评论 -
js编写烟花效果
js编写烟花效果 style设置 #container{ width: 80%; height: 600px; border: 2px solid red; background: #000; margin:20px auto; cursor: pointer; position: relative; left: 0; top: 0; overflow: hidden; } .fire{ widt...原创 2019-12-12 18:02:53 · 179 阅读 · 0 评论 -
简易的表单验证
html设计 用户名:<input type=“text” id=“user”<span</span 密码:<input type=“text” id=“pass”<span</span 重复密码:<input type=“text” id=“pass2”<span</span 手机号:<input type=“text” id=“tel...原创 2019-12-05 12:22:43 · 92 阅读 · 0 评论 -
简易万年历
DIV设置 * { padding: 0; margin: 0; } li { list-style: none; } body { background: #f6f9fc; font-family: arial; } .calendar { width: 210px; margin: 0 auto; padding: 10px 10px 20px 20px; background: #e...原创 2019-11-30 13:51:54 · 99 阅读 · 0 评论 -
用Js编写一个简易计算器。
用Js编写一个简易计算器。 Document + - * / %原创 2019-11-22 20:20:23 · 2650 阅读 · 0 评论