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…888990…102
avatar
developer
AI相伴的开发者博客
文章
1015
标签
715
分类
31
Follow Me
公告
This is my Blog
最新文章
php easywechat 6.x 微信支付 手动解密2026-02-25
php 反引号 执行shell脚本2026-02-25
mysql使用记录2026-02-19
flutter开发流程2026-02-08
react native 0.83 turbo modules 安卓 使用记录2026-01-10
分类
  • apicloud3
  • bootstrap8
  • cocos2d-js5
  • createjs17
  • day45
  • docker16
  • egret14
  • flash2x2
标签
chrome浏览器 data virtualbox new eui 设计模式 rc.local tbody 接口测试 恋爱 egret 交流 多版本 地址 编译 多对多关联模型 不准 自定义组件 grep thinkphp5 导入包 vue 函数 对象存储 自定义 alter 对象 区别 private 并携带cookie zip命令 php-sdk 会展行业 滋滋声 async 非典型 xss 开启HSTS 抽奖概率 测试代码
归档
  • 二月 2026 4
  • 一月 2026 3
  • 十二月 2025 5
  • 十一月 2025 2
  • 十月 2025 5
  • 九月 2025 5
  • 八月 2025 2
  • 七月 2025 1
网站信息
文章数目 :
1015
本站访客数 :
本站总浏览量 :
最后更新时间 :
© 2025 - 2026 By developer框架 Hexo 8.1.1|主题 Butterfly 5.5.4
搜索
数据加载中