Normalize.css
根据之前的一些项目,总结了一下重置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的更多相关文章
- Normalize.css的使用及下载
Normalize.css 只是一个很小的CSS文件,但它在默认的HTML元素样式上提供了跨浏览器的高度一致性.相比于传统的CSS reset,Normalize.css是一种现代的.为HTML5准备 ...
- normalize.css入门和下载
CSS Reset 是革命党,CSS Reset 里最激进那一派提倡不管你小子有用没用,通通给我脱了那身衣服,凭什么你 body 出生就穿一圈 margin,凭什么你姓 h 的比别人吃得胖,凭什么你 ...
- [转载]来,让我们谈一谈Normalize.css
来源 : http://segmentfault.com/a/1190000002239676 ---------------------------------------------------- ...
- Normalize.css – 现代 Web 开发必备的 CSS resets
Normalize.css 是一个可定制的 CSS 文件,使浏览器呈现的所有元素,更一致和符合现代标准.它正是针对只需要统一的元素样式.该项目依赖于研究浏览器默认元素风格之间的差异,精确定位需要重置的 ...
- Normalize.css 与 reset.css
Normalize.css 与 reset.css都是初始化页面样式 不同点在于 reset.css更加粗暴,直接把所有的样式全部初始化了: Normalize.css还剩点良心,还保留了一些浏览器默 ...
- Normalize.css 初识
一. 用来干嘛的 一个现代的.准备好了支持 HTML5 技术,并且要替代 CSS Reset 处理样式的理念. Normalize.css 使浏览器渲染所有元素更加一致,并且符合现代标准.它只是针对那 ...
- Normalize.css的使用(重置表)
本文译自Normalize.css官网: http://nicolasgallagher.com/about-normalize-css/ Normalize.css 只是一个很小的CSS文件,但它在 ...
- 来,让我们谈一谈Normalize.css
本文译自 http://nicolasgallagher.com/about-normalize-css/最初发布于我的博客:http://jerryzou.com/posts/aboutNormal ...
- Normalize.css:优化重置CSS默认属性
Normalize.css:优化重置CSS默认属性 官方网站:http://necolas.github.io/normalize.css/ 项目仓库:https://github.com/necol ...
- normalize.css介绍
Normalize.css 只是一个很小的CSS文件,但它在默认的HTML元素样式上提供了跨浏览器的高度一致性.相比于传统的CSS reset,Normalize.css是一种现代的.为HTML5准备 ...
随机推荐
- 挑灯熬夜看《Build 2015 Keynote》图文笔记
又是一年微软Build大会时间,网络上流传各种微软新品发布的消息终于也要揭晓了,一直熬夜到凌晨3点,好久没有这么兴奋了. 微软给力的很嘛! Satya nadella开始讲解 首先回顾微软的传统和技术 ...
- hibernate主键生成策略(转载)
http://www.cnblogs.com/kakafra/archive/2012/09/16/2687569.html 1.assigned 主键由外部程序负责生成,在 save() 之前必须指 ...
- servlet/jsp GET/POST
GET请求方式 当需要向服务器请求指定的资源时使用的方法 它不应该用于一些会造成副作用的操作中(在网络应用中用它来提交请求是一种常见的错误用法) 什么情况浏览器发送get请求 -在地址栏输入一个地址 ...
- Leetcode 21 Merge Two Sorted Lists 链表
合并两个已排序的链表,考到烂得不能再烂的经典题,但是很多人写这段代码会有这样或那样的问题 这里我给出了我的C++算法实现 /** * Definition for singly-linked list ...
- JAVA数组所占内存大小的对比
1.两个数据模型 第一个是基本类型数组,第二个使用的是Float对象数组 public class SummaryModel{ private float[] summaryData; public ...
- RFID 基础/分类/编码/调制/传输
不同频段的RFID产品会有不同的特性,本文详细介绍了无源的感应器在不同工作频率产品的特性以及主要的应用. 目前定义RFID产品的工作频率有低频.高频和甚高频的频率范围内的符合不同标准的不同的产品,而且 ...
- 用eclipse建立servlet工程
1.打开eclipse,选择[文件]|[新建]|[项目] 2.选择[Tomcat Project]后单击下一步,输入项目名[TestTomcat],选择下一步,将[Can update contex ...
- Python 目录操作
知道两个文件的绝对目录,怎样计算出两个文件的相对目录,例如:知道 a = '/usr/share/pyshared/test/a.py' b = '/usr/lib/dist/test/a.py' 可 ...
- python 相关安装和配置
永久链接: http://michaelzqm.iteye.com/blog/1841966 预览文章: python环境搭建 2013-04-04 博客分类: 综合 一. window环境安 ...
- JIRA 6.3.6版本部署
JIRA 6.3.6版本部署 部署环境:Ubuntu Server .JDK1.7 JIRA文件:atlassian-jira-6.3.6.tar.gz 下载地址:百度云网盘地址http://pan. ...