上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 36 下一页
摘要: 有个需求是要层叠两张图,就像你现在看到的:整个浏览器和html页面,内层图片要水平居中,等比例与源UI图适配不同设备 本来很简单的使用 vw vh了( 核心代码 top: 13.25vh; left: 50%; margin-left: -32.31vw; width: 64.62vw; heigh 阅读全文
posted @ 2018-10-25 17:34 justSmile2 阅读(1064) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-10-24 19:03 justSmile2 阅读(18) 评论(0) 推荐(0)
摘要: Math 对象 Math.PI π 3.141592653589793 Math.ceil('2.5') Math.ceil(2.1) 向上取整 3 Math.floor('2.5') 向下取整 2 Math.max(1,2,'3') 最大值 3 Math.min(1,2,'3') 最小值 Math 阅读全文
posted @ 2018-10-24 18:08 justSmile2 阅读(366) 评论(0) 推荐(0)
摘要: 1.思路: 能力检测 + 字符串检索 2.例子 IE Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0) ActiveXObject函数 Firefox Mozilla/5.0 (Windows; U; Windows NT 5.2) Gecko/2 阅读全文
posted @ 2018-10-24 17:25 justSmile2 阅读(274) 评论(0) 推荐(0)
摘要: typeof null - 'object typeof undefined - 'undefined' Boolean(null) - false Boolean(undefined) - false Number(undefined) - NaN Number(null) - 0 123 + n 阅读全文
posted @ 2018-10-24 17:11 justSmile2 阅读(175) 评论(0) 推荐(0)
摘要: 两种用法: 页面跳转时使用 url (部分浏览器会阻止新窗口弹出页面),其他情况一律遵循 ‘结构样式行为分离’ 1. url href="#" 文档顶部 表示回到最顶部 href="https://www.baidu.com" 绝对地址 页面跳转 <a href="layout/flex_layou 阅读全文
posted @ 2018-10-24 16:29 justSmile2 阅读(331) 评论(0) 推荐(0)
摘要: 1. css3 html <div class="container"> <div class="progress"> <div class="progress-bar"> <div class="progress-shadow"></div> </div> </div> </div> css bo 阅读全文
posted @ 2018-10-24 15:06 justSmile2 阅读(179) 评论(0) 推荐(0)
摘要: 1.定义 frames[]是窗口中所有命名的框架组成的数组。这个数组的每个元素都是一个Window对象,对应于窗口中的一个框架。 2.用法 假设iframe 是一个以存在的 iframe 的 ID 和 NAME 值,获取iframe的方法有: document.getElementById(“ifr 阅读全文
posted @ 2018-10-22 18:21 justSmile2 阅读(2629) 评论(3) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-10-22 16:34 justSmile2 阅读(37) 评论(0) 推荐(0)
摘要: arguments.callee 在函数内部指向函数本身 1.函数调用 function sum (num){ if(num <= 1){ return 1; }else{ return num * (arguments.callee(num - 1)) }} 2.区分形参 function a(n 阅读全文
posted @ 2018-10-20 16:39 justSmile2 阅读(144) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 36 下一页