- 浏览: 192534 次
- 性别:
- 来自: 成都
最新评论
-
Coande:
谢谢,这个很强大。
json转树状结构(js) -
prince_of_:
楼主,有一点我想提一下,你所说的三个步骤与new有一点不同使用 ...
理解js中的原型链,prototype与__proto__的关系 -
xuxiaoyinliu:
有帮助,谢谢
理解js中的原型链,prototype与__proto__的关系 -
huangyali2:
excanvas.js没有实现canvas的clearRect ...
IE下使用excanvas.js的注意事项 -
chried:
看了这个总算明白原型链了的
理解js中的原型链,prototype与__proto__的关系
/* 防止用户自定义背景颜色对网页的影响,添加让用户可以自定义字体 */ html{ color:#000; background:#fff; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;} /* 内外边距通常让各个浏览器样式的表现位置不同 */ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{ margin:0; padding:0;} /* 要注意表单元素并不继承父级 font 的问题 */ body,button,input,select,textarea{ font:12px/1.5 tahoma,arial,\5b8b\4f53;} input,select,textarea{ font-size:100%;} /* 去掉各Table cell 的边距并让其边重合 */ table{ border-collapse:collapse;border-spacing:0;} /* IE bug fixed: th 不继承 text-align*/ th{ text-align:inherit;} /* 对齐是排版最重要的因素, 别让什么都居中 */ caption,th { text-align:left; } /* 去除默认边框 */ fieldset,img{ border:0;} /* ie6 7 8(q) bug 显示为行内表现 */ iframe{ display:block;} /* 去掉列表前的标识, li 会继承 */ ol,ul,li{ list-style:none;} /* 一致的 del 样式 */ del{ text-decoration:line-through; } /* 来自yahoo, 让标题都自定义, 适应多个系统应用 */ h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:500;} q:before,q:after {content:'';} /* 统一上标和下标 */ sub, sup {font-size: 75%; line-height: 0; position: relative; vertical-align: baseline;} sup {top: -0.5em;} sub {bottom: -0.25em;} /* 默认不显示下划线,保持页面简洁 */ ins,a{ text-decoration:none;} /* 清理浮动 */ .clearFloat:after{visibility:hidden; display:block; font-size:0; content:" "; clear:both; height:0;} .clearFloat{ zoom:1; /* for IE6 IE7 */} /* 设置内联, 减少浮动带来的bug */ .floatLeft, .floatRight{ display:inline;} .floatLeft{ float:left;} .floatRight{ float:right;} /* 重设 HTML5 标签, IE 需要在 js 中 createElement(TAG) */ article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section { display:block;} /* HTML5 媒体文件跟 img 保持一致 */ audio,canvas,video{ display: inline-block;*display: inline;*zoom: 1;} /* 去掉 firefox 下此元素的边框 */ abbr,acronym{ border:0;font-variant:normal;} address,caption,cite,code,dfn,em,th,var{ font-style:normal; font-weight:500;} body{ color:#333;} a{ color:#00A0E9;} a:hover{ color:#FF6600;}
html{ color:#000; background:#fff; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;} body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{ margin:0; padding:0;} body,button,input,select,textarea{ font:12px/1.5 tahoma,arial,\5b8b\4f53;} input,select,textarea{ font-size:100%;} table{ border-collapse:collapse;border-spacing:0;} th{ text-align:inherit;} caption,th { text-align:left; } fieldset,img{ border:0;} iframe{ display:block;} ol,ul,li{ list-style:none;} del{ text-decoration:line-through; } h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:500;} q:before,q:after {content:'';} sub, sup {font-size: 75%; line-height: 0; position: relative; vertical-align: baseline;} sup {top: -0.5em;} sub {bottom: -0.25em;} ins,a{ text-decoration:none;} .clearFloat:after{visibility:hidden; display:block; font-size:0; content:" "; clear:both; height:0;} .clearFloat{ zoom:1;} .floatLeft, .floatRight{ display:inline;} .floatLeft{ float:left;} .floatRight{ float:right;} article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section { display:block;} audio,canvas,video{ display:inline-block; *display:inline; *zoom:1;} abbr,acronym{ border:0; font-variant:normal;} address,caption,cite,code,dfn,em,th,var{ font-style:normal; font-weight:500;} body{ color:#333;} a{ color:#00A0E9;} a:hover{ color:#FF6600;}
html{color:#000;background:#fff}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body,button,input,select,textarea{font:12px/1.5 tahoma,arial,\5b8b\4f53}input,select,textarea{font-size:100%}table{border-collapse:collapse;border-spacing:0}th{text-align:inherit}fieldset,img,a img{border:0}iframe{display:block}abbr,acronym{border:0;font-variant:normal}del{text-decoration:line-through}address,caption,cite,code,dfn,em,th,var{font-style:normal;font-weight:500}ol,ul{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:500}q:before,q:after{content:''}sup{vertical-align:text-top}sub{vertical-align:text-bottom}a:hover{text-decoration:underline}ins,a{text-decoration:none}.fn-clear:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.fn-clear{zoom:1}body.fn-hide{display:none}.fn-left,.fn-right{display:inline}.fn-left{float:left}.fn-right{float:right}
发表评论
-
容易出错的JavaScript题目
2013-07-08 17:56 7271、 function Container( proper ... -
javascript的函数节流
2013-07-08 17:36 904http://www.alloyteam.com/2012/ ... -
上个星期,上个月
2013-06-13 11:38 859<script type="text/jav ... -
new class
2013-06-06 01:29 905function newClass(classObj, sup ... -
JavaScript面对对象编程—继承
2013-05-28 15:33 1365概述: 原型链:一个原型等于另一个实例。不能给构造函数传递 ... -
寄生式组合继承
2013-05-28 11:34 950function inheritPrototype(sub ... -
Functionbind
2013-05-28 11:07 913Function.prototype.bind = func ... -
js 观察者模式
2013-05-07 17:08 1200<!doctype html> <ht ... -
github的常见操作
2013-04-26 10:14 998复制项目到本地: git clone git@git ... -
网站变灰
2013-04-24 00:43 1011js自己去找 <script src=&qu ... -
关闭闭包的定义
2013-03-27 18:47 858在动态执行环境中,数据实时地发生变化,为了保持这些非持久型变 ... -
SeaJS v1.2 中文注释版
2013-03-12 16:10 4061https://github.com/seajs/seajs ... -
使用requestAnimationFrame更好的实现javascript动画(转)
2013-03-12 10:24 3659详细说明:http://www.cnblogs.com/ru ... -
css阴影
2013-03-03 09:25 1370css代码:<style type="tex ... -
模拟apply和call
2013-03-01 18:56 1159<html> <head> &l ... -
冒泡排序
2013-03-01 18:30 1123function bubbleSort(arr){ v ... -
form导出数据
2013-01-29 18:24 1023$.exportExcel = function (opti ... -
从零开始写jQuery框架
2013-01-07 17:36 774随着时代发展,javascript ... -
AMD和CMD的区别
2013-01-05 16:56 958https://github.com/seajs/sea ... -
判断单击还是双击
2013-01-04 10:43 1022document.getElementById(&quo ...
相关推荐
常用基本样式,提高css样式的复用性,少写许多复用的样式。
2.还原的图片保存到相应的CSS同级目录下的【CssBase64ToImg】文件夹里 命令行使用方法(请使用绝对路径): CssImgBase64 E:\1.png 或 CssImgBase64 "E:\1.png" CssImgBase64 E:\1.css 或 CssImgBase64 "E:\1.css" ...
可以进行自定义样式,方便查看
这个工具可以将一个图片文件转换为Base64字符串,这样可以将其直接防止到CSS中,或者存储倒数据库中,而不需要保存文件在服务器的磁盘上。
css文件中的Base64图像。 转换此: .single-quote { background: url('../img/background-pattern.gif'); } 进入 .single-quote { background: url([removed]R0lGODlhBgAGAIAAAObm5vLy8iH/C1hNUCBEYXRhWE1QPD...
Markdown笔记前端人员使用的做笔记的软件 插件
《编写高质量代码—Web前端开发修炼之道》中的base.css文件,手打的,挺实用的,建议大家使用
可以把任意文件通过Base64编码为URL的形式 通常用于CSS链接图片 例如div{backgroud:url data:xxx ;} xxx代表通过该工具编码后的结果 而不需要链接到一个图片地址 这样可以减少http请求
基本css 基本CSS-仅用一个文件创建CSS结构。
base.css适合文件损坏的人下载
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/hot-sneaks/jquery-ui.css"> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> ...
技术点:1、使用htmlparser解析html文件,得到html代码里的js、css、img链接 2、将相对路径的链接转变成绝对路径,并读取资源 3、将css和js合并到html 4、将图片转换成base64编码,写入标签的src
Node.js流转换和CLI可以将内联CSS图像引用作为Base64编码的数据URI。 安装 npm install optimus-css 用法 在您的终端(或package.json脚本或Makefile )中: optimus app/css/app.css --cwd app --output build --...
备用统一的base.css文件,以后按这个文件来进行分层编写css
生成具有WOFF(2)谷歌字体且嵌入为Base64CSS文件 安装 npm i grunt-font-base64 --save-dev 用法 使用前请先阅读问题 设定档 font_base64: { options : { dest : './src/...
ext 是 ExtJs 的简称,是一个强大的js 类库。本资源主要包括三个大的文件ext-all.css,ext-base.js,ext-al.js。在引用ext 类库的时候,这三个文件必不可少。另外我还提供了ext2的一个简单例子,以便大家学习交流。
该帮助程序会将图像和字体注入到您的css文件中。 警告 ! 这种技术对于小文件(<14 Kb)确实非常有效,因为它避免了DNS请求,并使页面加载速度更快。 但是对于较大的文件,使用它将是一个错误! 安装它 npm ...
gulp-base64-webfont-css Gulp 插件从 woff 和 woff2 文件生成带有 Base64 编码字体数据的 css 文件
STATICFILES_DIRS = [ os.path.join(BASE_DIR, “statics”),] statices为你所建立的存放静态文件的文件夹名 然后进行引用。 1、html 文件中通过 /static/资源名的方式,就可以访问到资源 2、①html 文件头部填写 ...