根据之前的一些项目,总结了一下重置CSS:

 @charset "UTF-8";
html {
background: #FFF;
font-size: 62.5%;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
html,
legend,
input,
select,
textarea {
color: $defaultColor;
}
body {
color: inherit;
background: transparent;
}
html,
body,
legend,
input,
select,
textarea {
font: normal normal normal 12px/1.5 'Microsoft YaHei',Arial, Helvetica, sans-serif,'\5B8B\4F53';
}
body,
div,
header,
footer,
nav,
aside,
article,
section,
hgroup,
figure,
figcaption,
video,
audio,
embed,
mark,
summary,
progress,
canvas,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
margin:;
padding: 0
}
table {
border-collapse: collapse;
border-spacing:;
_font-size: 12px;
}
td,
th {
color: inherit;
font-family: inherit;
vertical-align: top;
}
fieldset,
img,
iframe {
border: none;
}
address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
font-style: normal;
font-weight: normal;
}
ol,
ul,
li {
list-style: none;
}
header,
footer,
nav,
aside,
article,
section,
hgroup,
figure,
figcaption {
display: block;
}
caption,
th {
text-align: left;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: normal;
}
q:before,
q:after {
content: '';
}
pre {
white-space: pre-wrap;
}
small {
font-size: 0.8em;
}
mark {
background: #ff0;
color: #000;
}
abbr[title] {
border-bottom: 1px dotted;
}
abbr,
acronym {
border:;
font-variant: normal;
}
sup,
sub {
font-size: 0.75em;
}
sup {
vertical-align: text-top;
}
sub {
vertical-align: text-bottom;
}
button,
select {
text-transform: none;
}
input:-webkit-autofill {
-webkit-box-shadow: 0 0 0px 1000px white inset;
}
input,
textarea,
select {
font-family: inherit;
font-size: inherit;
font-weight: inherit;
color: inherit;
line-height: 1.2;
&:focus {
outline: none;
}
}
textarea {
overflow-x: hidden;
overflow-y: auto;
vertical-align: top;
resize: none;
}
input[type='checkbox'],
input[type='radio'] {
width: auto;
vertical-align: middle;
}
.button,
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button;
cursor: pointer;
}
label{
cursor: pointer;
}
button[disabled],
html input[disabled] {
cursor: default;
}
input::-ms-clear,
input::-ms-reveal {
display: none; /* For IE10+ */
}
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding:;
}
input[type="search"] {
-webkit-appearance: textfield;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
a {
background: transparent; /* For IE10+ */
}
a,
a:link,
a:hover,
a:active,
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:focus {
outline: none;
}
code,
kbd,
pre,
samp {
font-family: monospace, serif;
font-size: inherit;
}
::-webkit-input-placeholder {
color: #AAA;
opacity:;
}
::-moz-placeholder {
color: #AAA;
opacity:; /* For Firefox */
}
:-ms-input-placeholder {
color: #AAA;
opacity:;
}
::selection,
::-moz-selection {
background: inherit;
color: white;
} /* Firefox for button vertical center */
button::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner,
input[type="file"] > input[type="button"]::-moz-focus-inner {
border: none;
padding:;
} /* -- Normalize End-- */

Normalize.css的更多相关文章

  1. Normalize.css的使用及下载

    Normalize.css 只是一个很小的CSS文件,但它在默认的HTML元素样式上提供了跨浏览器的高度一致性.相比于传统的CSS reset,Normalize.css是一种现代的.为HTML5准备 ...

  2. normalize.css入门和下载

    CSS Reset 是革命党,CSS Reset 里最激进那一派提倡不管你小子有用没用,通通给我脱了那身衣服,凭什么你 body 出生就穿一圈 margin,凭什么你姓 h 的比别人吃得胖,凭什么你 ...

  3. [转载]来,让我们谈一谈Normalize.css

    来源 : http://segmentfault.com/a/1190000002239676 ---------------------------------------------------- ...

  4. Normalize.css – 现代 Web 开发必备的 CSS resets

    Normalize.css 是一个可定制的 CSS 文件,使浏览器呈现的所有元素,更一致和符合现代标准.它正是针对只需要统一的元素样式.该项目依赖于研究浏览器默认元素风格之间的差异,精确定位需要重置的 ...

  5. Normalize.css 与 reset.css

    Normalize.css 与 reset.css都是初始化页面样式 不同点在于 reset.css更加粗暴,直接把所有的样式全部初始化了: Normalize.css还剩点良心,还保留了一些浏览器默 ...

  6. Normalize.css 初识

    一. 用来干嘛的 一个现代的.准备好了支持 HTML5 技术,并且要替代 CSS Reset 处理样式的理念. Normalize.css 使浏览器渲染所有元素更加一致,并且符合现代标准.它只是针对那 ...

  7. Normalize.css的使用(重置表)

    本文译自Normalize.css官网: http://nicolasgallagher.com/about-normalize-css/ Normalize.css 只是一个很小的CSS文件,但它在 ...

  8. 来,让我们谈一谈Normalize.css

    本文译自 http://nicolasgallagher.com/about-normalize-css/最初发布于我的博客:http://jerryzou.com/posts/aboutNormal ...

  9. Normalize.css:优化重置CSS默认属性

    Normalize.css:优化重置CSS默认属性 官方网站:http://necolas.github.io/normalize.css/ 项目仓库:https://github.com/necol ...

  10. normalize.css介绍

    Normalize.css 只是一个很小的CSS文件,但它在默认的HTML元素样式上提供了跨浏览器的高度一致性.相比于传统的CSS reset,Normalize.css是一种现代的.为HTML5准备 ...

随机推荐

  1. jenkins2 pipeline实例

    比较完整的实例,使用了maven打包,git tag,发通知邮件,等待用户deploy,deploy到nexus. 文章来自:http://www.ciandcd.com文中的代码来自可以从githu ...

  2. 重装Windows系统后,Linux系统启动引导失败

    说明:我的电脑是在装了Windows系统后,装的Linux系统,所以启动引导是Linux干的活.可是,今天重装了Windows系统,启动引导就换成了Windows的,Windows的启动引导把Linu ...

  3. Objective-C与C style语言的简单类比

    1. 关于Objc中函数调用类比 [_lblHelloWorld setHidden:![_lblHelloWorld isHidden]]; 类比为: _lblHelloWorld.setHidde ...

  4. DataGridView列排序混乱的处理方法

    在C#程序开发中DataGridView可以说是使用最多的数据呈现控件了,但是在使用的过程中我们会发现当绑定的数据源有较多数据列的时候,DataGridView上显示的列的顺序就会出现混乱的现象. 那 ...

  5. Atitit. C# java 的api 目录封装结构映射总结

    Atitit. C#  java 的api 目录封装结构映射总结 C# java ref System.Reflection System.Type, java.lang.ref concurrent ...

  6. Sql Server2005恢复备份数据库问题-Error:3154 3219

    解决办法: 1.新建一个同名数据库New_HeasySchoolDB2.执行下面的sql语句: restore database New_HeasySchoolDB from disk = 'D:/N ...

  7. Leetcode 278 First Bad Version 二分查找(二分下标)

    题意:找到第一个出问题的版本 二分查找,注意 mid = l + (r - l + 1) / 2;因为整数会溢出 // Forward declaration of isBadVersion API. ...

  8. Anywhere服务建立及连接步骤

    <烟叶自动化收购管理系统(山东版)>服务端程序为<烟站综合管理系统5.0>,5.0使用的数据库为Anywhere,设置方法如下:   建立anywhere服务连接步骤   服务 ...

  9. android: 内容提供器简介

    我们学了 Android 数据持久化的技术,包括文件存储.SharedPreferences 存 储.以及数据库存储.不知道你有没有发现,使用这些持久化技术所保存的数据都只能在当 前应用程序中访问.虽 ...

  10. CMSIS OS None

    /* ---------------------------------------------------------------------- * Copyright (C) 2011 ARM L ...