摘要: hangleGoUp(){ console.log("开始") let nowTop = document.body.scrollTop || document.documentElement.scrollTop; // 获取当前滚动条位置 if (nowTop > 0) { window.requ 阅读全文
posted @ 2019-10-19 11:08 de玻璃 阅读(986) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>vue点击切换显示隐藏</title> <script src="js/same/vue.js"></script> <style type="text/css"> *{ padd 阅读全文
posted @ 2019-10-11 10:22 de玻璃 阅读(862) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-28 17:03 de玻璃 阅读(119) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <!--标准通用标记语言,它的目的是要告诉标准 通用标记语言解析器,它应该使用什么样的文档类型定义(DTD)来解析文档。 声明文档的解析类型(document.compatMode),避免浏览器的怪异模式。 两个模式: BackCompat:怪异模式,浏览器使用自己的 阅读全文
posted @ 2019-08-28 11:27 de玻璃 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 网页可见区域宽:document.body.clientWidth 网页可见区域高:document.body.clientHeight 网页可见区域宽:document.body.offsetWidth (包括边线的宽) 网页可见区域高:document.body.offsetHeight (包括边线的宽) 网页正文全文宽:document.body.scrollWidth 网页正文全... 阅读全文
posted @ 2019-06-13 14:24 de玻璃 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 手机移动端调用QQ客服对话聊天窗口: 1 <a target="_blank" href="mqqwpa://im/chat?chat_type=wpa&uin=你的QQ号&version=1&src_type=web&web_src=lvlingseeds.com">手机QQ客服</a> 1 <a 阅读全文
posted @ 2019-06-13 14:02 de玻璃 阅读(524) 评论(0) 推荐(0) 编辑
摘要: !function(e, t, a) { function r() { for (var e = 0; e < s.length; e++) s[e].alpha <= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[e].y--, s[ 阅读全文
posted @ 2019-06-12 15:22 de玻璃 阅读(540) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2019-06-12 15:15 de玻璃 阅读(97) 评论(0) 推荐(0) 编辑
摘要: <marquee>标签,它是成对出现的标签,首标签<marquee>和尾标签</marquee>之间的内容就是滚动内容。<marquee>标签的属性主要有behavior、bgcolor、direction、width、height、hspace、vspace、loop、scrollamount、s 阅读全文
posted @ 2019-06-11 14:19 de玻璃 阅读(9161) 评论(0) 推荐(0) 编辑
摘要: 移动端双击回到顶部: var touchtime = new Date().getTime(); $(".header").on("click", function() { if(new Date().getTime() - touchtime < 500) { console.log("dblcl 阅读全文
posted @ 2019-06-10 12:03 de玻璃 阅读(212) 评论(0) 推荐(0) 编辑