学无止境,加油屌丝
摘要: 不注意看到的,保存以备后用 ['pushState','popstate','replaceState'].forEach(function(item,index){ window.addEventListener(item, fun); }) 阅读全文
posted @ 2020-06-06 22:50 nofeel666 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 简单描述 行内元素(inline)和块级元素(block)都是display属性的值。要知道行内元素和块级元素的区别,首先要了解他们的特性。 行内元素的特性:“行内”,顾名思义,在一行之内,所以相邻的行内元素在同一行,当他们宽度超过了容器的宽度才会自动换行。行内元素的宽度、高度、内边距的 top/b 阅读全文
posted @ 2020-05-30 22:49 nofeel666 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 小练习 顺序跳跃显示数组中的值 <input type="text" id="t" size="60"> <button id="s">stop</button> <script> var tt=document.getElementById('t'); var s=document.getElem 阅读全文
posted @ 2020-05-14 22:41 nofeel666 阅读(186) 评论(0) 推荐(0) 编辑
摘要: <style> #head{float: left;} #head ul li{float: left;list-style: none;padding-left: 15px;} .nav{font-size: 18px;font-weight: bold;} </style> <div id="h 阅读全文
posted @ 2020-05-13 13:07 nofeel666 阅读(203) 评论(0) 推荐(0) 编辑
摘要: <style> .s1{color: rebeccapurple;font-size: 25px;} .s2{color: red;} .s3{color: blue;} .s4{color:yellow;} </style> <div id="div"> <span>1</span> <span> 阅读全文
posted @ 2020-05-09 10:23 nofeel666 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 变量必须用var声明,否则就是更新操作, 如果这个变量尚未声明过, 就会在全局自动声明并创建它 贴上练习的定时器 <div class="box"> <label for="tj">跳转网址</label> <input type="text" name="tj" id="tj" value=""> 阅读全文
posted @ 2020-03-04 17:18 nofeel666 阅读(89) 评论(0) 推荐(0) 编辑
摘要: slice和splice属性 slice不会改变原始数组 splice会改变原始数组。 元素的属性有原生属性 阅读全文
posted @ 2020-03-03 12:47 nofeel666 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 自己手撸的,记录一下 <meta charset="utf-8"> <style> .ok,.two{ list-style: none; width: 200px; margin-top: 0; padding-left: 0; } .ok li{ background: darkgoldenro 阅读全文
posted @ 2020-03-03 11:06 nofeel666 阅读(488) 评论(0) 推荐(0) 编辑
摘要: document.location.hash // #号后的部分document.location.host // 域名+端口号//好像返回的是主机名localhost,没有返回端口号document.location.hostname // 域名document.location.href // 阅读全文
posted @ 2020-02-29 08:57 nofeel666 阅读(386) 评论(0) 推荐(0) 编辑
摘要: background-position: center;背景图片居中,不确定是不是这个方式,看后面ajax后再说 box-sizing:border-box; 基于边框的盒子,内边距不会将盒子撑开overflow的hidden属性不仅可以溢出隐藏,还可以放在父级盒子中让子级的浮动元素在父级盒子中{备 阅读全文
posted @ 2020-02-17 12:38 nofeel666 阅读(77) 评论(0) 推荐(0) 编辑