Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| /*参考了normalize.css和aliceui.org*/ | |
| /* ========================================================================== | |
| Base | |
| ========================================================================== */ | |
| /** | |
| * 1. 修正文本(text)当body标签的`font-size`使用`em`为单位时的缩放错误 | |
| * 2. 预防iOS在切换方向之后文本字号适应错误 | |
| */ |
| /* 清除浮动 */ | |
| .fn-clear:after { | |
| content: "."; | |
| display: block; | |
| height: 0; | |
| visibility: hidden; | |
| clear: both; | |
| } | |
| .fn-clear { | |
| *zoom: 1; |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| var gulp = require('gulp'), | |
| md5Plus = require('gulp-md5-plus'), | |
| md5Assets = require('gulp-md5-assets'); | |
| /* gulp-md5-plus demo */ | |
| /** | |
| * 测试结果如下,可以修改 css 的名字和 css 引用的图片名字, | |
| * 也可以修改 html 对 css 的引用。 | |
| * task md5Plus 是修改 html 对静态资源的引用, | |
| * task img 是修改 css 和 css 引用图片的名字。 |
| /** | |
| * 判断是否支持全屏 | |
| * | |
| * @return {Boolean} boolean 返回布尔值 | |
| */ | |
| function canFullscreen() { | |
| var el = document.body; | |
| return ( | |
| typeof ( | |
| el.requestFullScreen || |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
| <title>高德地图测试</title> | |
| <style type="text/css"> | |
| body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;font-family:"微软雅黑";} | |
| #container { |