10 2017 档案

摘要:$(selector).each(function(index,element))。function中要放两个值, <script>$(document).ready(function(){ $("button").click(function(){ $("li").each(function(){ 阅读全文

posted @ 2017-10-30 21:57 关玉珊 阅读(132) 评论(0) 推荐(0)

摘要:1、push() 方法: 可向数组的末尾添加一个或多个元素,并返回新的长度 2、unshift()方法:可以向数组的首位置添加一个或多个元素; <p id="demo">单击按钮给数组添加新的元素。</p><button onclick="myFunction()">点我</button><scri 阅读全文

posted @ 2017-10-30 21:26 关玉珊 阅读(326) 评论(0) 推荐(0)

摘要:结果是:function a(){console.log(4)}、1、1、3、3、报错;结果是:undefined、1结果是:1、2结果是:undefined、1 阅读全文

posted @ 2017-10-24 11:30 关玉珊 阅读(110) 评论(0) 推荐(0)

摘要:overflow:hidden; white-space: nowrap; text-overflow: ellipsis; 阅读全文

posted @ 2017-10-21 12:14 关玉珊 阅读(117) 评论(0) 推荐(0)

摘要:.blur{ filter: blur(2px); -webkit-filter: blur(2px); /* chrome, opera */ -moz-filter: blur(2px);} 给图片加上一个类选择器,就可以了 阅读全文

posted @ 2017-10-20 18:16 关玉珊 阅读(281) 评论(0) 推荐(0)

摘要:解决方法:是在下拉菜单层设置css:position:absolute;z-index:999; position:absolute:绝对定位,和上下文无关。 阅读全文

posted @ 2017-10-10 22:36 关玉珊 阅读(1383) 评论(0) 推荐(0)

导航