摘要: 移动设备 viewport:能优化移动浏览器的显示。如果不是响应式网站,不要使用initial-scale或者禁用缩放。 大部分4.7-5寸设备的viewport宽设为360px;5.5寸设备设为400px;iphone6设为375px;ipone6 plus设为414px。 WebApp全屏模式: 阅读全文
posted @ 2016-12-19 11:22 mumakiss 阅读(602) 评论(0) 推荐(0) 编辑
摘要: HTML 5: 根元素, 元数据元素, 脚本元素 根元素 - doctype, html 元数据元素 - head, title, base, link, meta, style 脚本元素 - script, noscript 1、<!doctype html>,文档类型 2、<html lang= 阅读全文
posted @ 2016-12-19 09:37 mumakiss 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 什么是元数据?为何需要元数据? 要理解这个问题,首先要知道“元”是什么。元(meta),一般被我们翻译成“关于……的……”。 元数据(meta data)——“data about data” 关于数据的数据,一般是结构化数据(如存储在数据库里的数据,规定了字段的长度、类型等)。元数据是指从信息资源 阅读全文
posted @ 2016-12-19 09:17 mumakiss 阅读(2907) 评论(0) 推荐(2) 编辑
摘要: JavaScript学习总结(一)——延迟对象、跨域、模板引擎、弹出层、AJAX示例 阅读全文
posted @ 2016-12-19 08:41 mumakiss 阅读(91) 评论(0) 推荐(0) 编辑
摘要: Location对象window.location document.location解析URLdocument.URL //为该文档的URL静态字符串地址location.href //为该文档的URL静态字符串地址location.toString() //返回href属性的值。其他属性prot 阅读全文
posted @ 2016-12-17 23:54 mumakiss 阅读(119) 评论(0) 推荐(0) 编辑
摘要: <!--[if IE 6]> <script src="excanvas.js" type="text/javascript" charset="utf-8"></script> //引入IE 图像类库 <![endif]--> <!--[if IE 6]> 内容 <![endif]--> <!-- 阅读全文
posted @ 2016-12-14 17:46 mumakiss 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 代码如下: div{filter:alpha(Opacity=80);-moz-opacity:0.5;opacity: 0.5;} 说明: 1、filter:对win IE设置半透明滤镜效果,filter:alpha(Opacity=80)代表该对象80%半透明,火狐浏览器不认 2、-moz-op 阅读全文
posted @ 2016-12-12 10:09 mumakiss 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 遍历Request.ServerVariables Request.ServerVariables("Url") 返回服务器地址 Request.ServerVariables("Path_Info") 客户端提供的路径信息 Request.ServerVariables("Appl_Physica 阅读全文
posted @ 2016-11-30 13:12 mumakiss 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 常用: JS 获取浏览器窗口大小 1 // 获取窗口宽度 2 if (windows.innerWidth) 3 winWidth = windows.innerWidth; 4 else if ((document.body) && (document.body.clientWidth)) 5 w 阅读全文
posted @ 2016-11-29 17:02 mumakiss 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www. 阅读全文
posted @ 2016-11-29 16:52 mumakiss 阅读(87) 评论(0) 推荐(0) 编辑