Dev
搜索

Dev

jquery获取窗口高度
发表于2015-11-23|jq
[pcsh lang=”js” tab_size=”4” message=”” hl_lines=”” provider=”manual”] alert($(window).height()); //浏览器窗口可视区域高度 alert($(document).height()); //浏览器当前窗口文档的高度 alert($(document.body).height());//浏览器当前窗口文档body的高度 alert($(document.body).outerHeight(true));//窗口body的总高度 包括border padding margin alert($(window).width()); //浏览器当前窗口可视区域宽度 alert($(document).width());//浏览器当前窗口文档对象宽度 alert($(document.body).width());//浏览器当前窗口文档body的高度 alert($(document.body).outerWidth(true));/...
js获取窗口高度
发表于2015-11-23|js
[pcsh lang=”js” tab_size=”4” message=”” hl_lines=”” provider=”manual”] var s = "网页可见区域宽 :"+ document.body.clientWidth; s += "\r\n网页可见区域高:"+ document.body.clientHeight; s += "\r\n网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)"; s += "\r\n网页正文全文宽:"+ document.body.scrollWidth; s += "\r\n网页正文全文高:"+ document.body.scrollHeight; s += "\r\n网页被卷去的高:"+ document.body.scrollTop; s += "\r\n网页被卷去的左:"+ ...
jquery not函数用法@jquery删除一个或多个元素
发表于2015-11-21|jq
示例 $(obj).siblings().not(“.clear,span”)
css absolute relative定位
发表于2015-11-21|jq
absolute是绝对定位;而relative是相对定位;解释:绝对定位就是相对于父元素的定位,不受父元素内其他子元素的影响;而相对定位是相对于同级元素的定位,也就是上一个同级元素 static 默认值。没有定位,元素出现在正常的流中(忽略 top, bottom, left, right 或者 z-index 声明)。 fixed 生成绝对定位的元素,相对于浏览器窗口进行定位。 元素的位置通过 “left”, “top”, “right” 以及 “bottom” 属性进行规定。 inherit 规定应该从父元素继承 position 属性的值。
jQuery 效果 - animate() 方法
发表于2015-11-21|jq
原文地址:http://www.w3school.com.cn/jquery/effect_animate.asp 经过实际检验,这个style的值,比如“height”貌似不能为百分比,最好是px 例如: [pcsh lang=”js” tab_size=”4” message=”” hl_lines=”” provider=”manual”] $("#shadow1").animate({height:"300px"},"slow"); // 可以通过 $("#shadow1").animate({height:"100%"},"slow"); // 不可以通过 [/pcsh] 实例 改变 "div" 元素的高度: $(".btn1").click(function(){ $("#box").animate({height:"300px"}); }); $(selector).animate(styles,spe...
jQuery 遍历 - eq() 方法
发表于2015-11-21|jq
通过为 index 为 2 的 div 添加适当的类,将其变为蓝色: $("body").find("div").eq(2).addClass("blue"); 定义和用法 eq() 方法将匹配元素集缩减值指定 index 上的一个。 语法 .eq(index) 参数 描述 index 整数,指示元素的位置(最小为 0)。 如果是负数,则从集合中的最后一个元素往回计数。
jQuery -eq() 选择器
发表于2015-11-21|jq
实例 选择第二个 <p> 元素: $("p:eq(1)")
jQuery 同胞 遍历
发表于2015-11-21|jq
原文地址:http://www.w3school.com.cn/jquery/jquery_traversing_siblings.asp 同胞拥有相同的父元素。 siblings() next() nextAll() nextUntil() prev() prevAll() prevUntil()  
mysql怎么使用if...else...来查询
发表于2015-11-20|mysql
http://blog.chinaunix.net/uid-20837107-id-2413233.html IFNULL(expr1,expr2)如果expr1不是NULL,IFNULL()返回expr1,否则它返回expr2。IFNULL()返回一个数字或字符串值,取决于它被使用的上下文环境。mysql>; select IFNULL(1,0);->; 1mysql>; select IFNULL(0,10);->; 0mysql>; select IFNULL(1/0,10);->; 10mysql>; select IFNULL(1/0,’yes’);->; ‘yes’ IF(expr1,expr2,expr3)如果expr1是TRUE(expr1<>;0且expr1<>;NULL),那么IF()返回expr2,否则它返回expr3。IF()返回一个数字或字符串值,取决于它被使用的上下文。mysql>; select IF(1>;2,2,3);->; 3mysql...
mysql Having与Where的区别
发表于2015-11-20|mysql
where 子句的作用是在对查询结果进行分组前,将不符合where条件的行去掉,即在分组之前过滤数据,where条件中不能包含聚组函数,使用where条件过滤出特定的行。 having 子句的作用是筛选满足条件的组,即在分组之后过滤数据,条件中经常包含聚组函数,使用having 条件过滤出特定的组,也可以使用多个分组标准进行分组。 示例: [pcsh lang=”sql” tab_size=”4” message=”” hl_lines=”” provider=”manual”] SELECT Customer,SUM(OrderPrice) FROM Orders GROUP BY Customer HAVING SUM(OrderPrice)<2000 [/pcsh] Customer字段可能有多个相同的人,分组后算出每个OrderPrice订单价格的总价   http://www.cnblogs.com/rainman/archive/2013/05/01/3053703.html
1…899091…103
avatar
developer
AI相伴的开发者博客
文章
1025
标签
727
分类
35
Follow Me
公告
This is my Blog
最新文章
python开发环境多版本管理2026-08-18
opencode自定义模型2026-06-18
pdf操作2026-06-04
pdf按章节拆分到文件2026-05-03
svg转png2026-04-09
分类
  • apicloud3
  • bootstrap8
  • cmder1
  • cocos2d-js5
  • createjs17
  • day45
  • docker16
  • egret14
标签
注意要点 th 配置 判断一个 git rc.local 对象 常见问题 问题 引用传递 require_once() centos 区别 animate动画 hset命令 trim 每隔一段时间 要点 pgsql 图片 golang swoft goaccess getx 显示 微信开发 设计模式 Filter 高度可自定义 开放平台 发红包 to grep 测试代码 require() call 控制器 ioc array_column 时间复杂度
归档
  • 八月 2026 1
  • 六月 2026 2
  • 五月 2026 1
  • 四月 2026 2
  • 三月 2026 3
  • 二月 2026 5
  • 一月 2026 3
  • 十二月 2025 5
网站信息
文章数目 :
1025
最后更新时间 :
© 2025 - 2026 By developer框架 Hexo 8.1.1|主题 Butterfly 5.5.4
搜索
数据加载中