APP reset.css

Posted 一叶知秋 https://www.cssge.com

tags:

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


html {
    box-sizing: border-box;
}
* {
    user-select: none;
    -webkit-tap-highlight-color: rgba(255,255,255,0);
    -webkit-tap-highlight-color: transparent;
    box-sizing: inherit;
}
*:before,
*:after {
    box-sizing: inherit;
}
input[type],
[contenteditable] {
    user-select: text;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
}
a {
    text-decoration: none;
    color: inherit;
}
b {
    font-weight: 400;
}
em,
i {
    font-style: normal;
}
a:focus {
    outline: 0;
}
input,
fieldset {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
    font-size: 1rem;
    font-family: inherit;
}
input::-ms-clear {
    display: none;
}
input:focus {
    outline: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
}
svg {
    display: inline-flex;
}

img {
    max-width: 100%;
    display: block;
}

 

以上是关于APP reset.css的主要内容,如果未能解决你的问题,请参考以下文章

现代 CSS 解决方案:Modern CSS Reset

css 休息CSS样式(reset.css)

css 休息CSS样式(reset.css)

css重置样式表reset.css和normalize.css

css重置样式表reset.css和normalize.css

css重置样式表reset.css和normalize.css