reset.css重置样式

reset.css 是重置样式表,统一各浏览器的基础样式,下面列出几个常见的 reset文件,常放在公共样式表中引用

淘宝的reset

blockquote,body,button,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,input,legend,li,ol,p,pre,td,textarea,th,ul {
   
    margin: 0;
    padding: 0
}

body,button,input,select,textarea {
   
    font: 12px/1.5 tahoma,arial,'Hiragino Sans GB','\5b8b\4f53',sans-serif
}

h1,h2,h3,h4,h5,h6 {
   
    font-size: 100%
}

address,cite,dfn,em,var {
   
    font-style: normal
}

code,kbd,pre,samp {
   
    font-family: courier new,courier,monospace
}

small {
   
    font-size: 12px
}

ol,ul {
   
    list-style: none
}

a {
   
    text-decoration: none
}

a:hover {
   
    text-decoration: underline
}

sup {
   
    vertical-align: text-top
}

sub {
   
    vertical-align: text-bottom
}

legend {
   
    color: #000
}

fieldset,img {
   
    border: 0
}

button,input,select,textarea {
   
    font-size: 100%
}

table {
   
    border-collapse: collapse;
    border-spacing: 0
}

京东的reset

* {
   
    margin: 0;
    padding: 0
}

em,i {
   
    font-style: normal
}

li {
   
    list-style: none
}

img {
   
    border: 0;
    vertical-align: middle
}

button {
   
    cursor: pointer
}

a {
   
    color: #666;
    text-decoration: none
}

a:hover {
   
    color: #c81623
}

button,input {
   
    font-family: Microsoft YaHei,tahoma,arial,Hiragino Sans GB,\\5b8b\4f53,sans-serif
}

body {
   
    -webkit-font-smoothing: antialiased;
    background-color: #fff;
    font: 12px/1.5 Microsoft YaHei,tahoma,arial,Hiragino Sans GB,\\5b8b\4f53,sans-serif;
    color: #666
}

.hide,.none {
   
    display: none
}

.clearfix:after {
   
    visibility: hidden;
    clear: both;
    display: block;
    content: ".";
    height: 0
}

.clearfix {
   
    *zoom: 1
}

百度的reset

body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td {
   
    margin: 0;
    padding: 0
}

html {
   
    color: #000;
    overflow-y: scroll;
    overflow: -moz-scrollbars
}

body,button,input,select,textarea {
   
    font: 12px arial
}

h1,h2,h3,h4,h5,h6 {
   
    font-size: 100%
}

em {
   
    font-style: normal
}

small {
   
    font-size: 12px
}

ul,ol {
   
    list-style: none
}

a {
   
    text-decoration: none
}

a:hover {
   
    text-decoration: underline
}

legend {
   
    color: #000
}

fieldset,img {
   
    border: 0
}

button,input,select,textarea {
   
    font-size: 100%
}

table {
   
    border-collapse: collapse;
    border-spacing: 0
}

img {
   
    -ms-interpolation-mode: bicubic
}

textarea {
   
    resize: vertical
}

.left {
   
    float: left
}

.right {
   
    float: right
}

.overflow {
   
    overflow: hidden
}

.hide {
   
    display: none
}

.block {
   
    display: block
}

.inline {
   
    display: inline
}

.error {
   
    color: #F00;
    font-size: 12px
}

label,button {
   
    cursor: pointer
}

.clearfix:after {
   
    content: '\20';
    display: block;
    height: 0;
    clear: both
}

.clearfix {
   
    zoom: 1
}

.clear {
   
    clear: both;
    height: 0;
    line-height: 0;
    font-size: 0;
    visibility: hidden;
    overflow: hidden
}

相关推荐

  1. reset.css样式

    2024-01-25 11:00:05       58 阅读
  2. uView内样式

    2024-01-25 11:00:05       45 阅读
  3. alist密码

    2024-01-25 11:00:05       75 阅读
  4. Ubuntu 网络

    2024-01-25 11:00:05       32 阅读
  5. Kafka

    2024-01-25 11:00:05       20 阅读
  6. sass 写elementui样式

    2024-01-25 11:00:05       48 阅读
  7. JIRA 管理员密码

    2024-01-25 11:00:05       61 阅读
  8. gitlab root密码

    2024-01-25 11:00:05       42 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-25 11:00:05       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-25 11:00:05       106 阅读
  3. 在Django里面运行非项目文件

    2024-01-25 11:00:05       87 阅读
  4. Python语言-面向对象

    2024-01-25 11:00:05       96 阅读

热门阅读

  1. Android 长按网页选中文字的弹出菜单的自定义

    2024-01-25 11:00:05       42 阅读
  2. 【如何从零基础小白开始学习C++详细介绍】

    2024-01-25 11:00:05       53 阅读
  3. 笔记 | WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

    2024-01-25 11:00:05       56 阅读
  4. MongoDB 聚合查询在数据统计中的应用

    2024-01-25 11:00:05       53 阅读
  5. HarmonyOS应用开发者基础认证

    2024-01-25 11:00:05       62 阅读
  6. Flutter中状态管理选项的比较:利弊探索

    2024-01-25 11:00:05       51 阅读