scss CSS重置v1

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了scss CSS重置v1相关的知识,希望对你有一定的参考价值。

html {
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.15;
}

*, *:before, *:after {
	box-sizing: inherit;
}

p {
	line-height: 1.65;
	margin: 0;
	padding: 0;
}

body, h1, h2, h3, h4, h4, h5, h6 {
	margin: 0;
	padding: 0;
	line-height: 1.15;
}

// ul, ol {
// 	list-style-type: none;
// }

a {
	background-color: transparent;
	text-decoration: none;
}

b, strong {
	font-weight: bolder;
}

small {
	font-size: 80%;
}

button, input, select, textarea {
	font-size: 1rem;
	line-height: 1.15;
	margin: 0;
	text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

progress {
	display: block;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

[hidden] {
	display: none;
}

[disabled] {
	cursor: not-allowed;
}

img, video, object {
	vertical-align: top;
}

以上是关于scss CSS重置v1的主要内容,如果未能解决你的问题,请参考以下文章

scss CSS:Eric Meyer的重置为Sass部分

SCSS / CSS 最接近父选择器

Rails 脚手架 scss 每次生成脚手架时都会重置

scss 我的重置样式_base.scss

scss 重置各种供应商ul边距,有时无法通过重置进行标准化

scss 基本重置