zoukankan      html  css  js  c++  java
  • 页面初始化样式保留

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

    body {
    background: #fff;
    color: #555;
    font-size: 14px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    }

    td,
    th,
    caption {
    font-size: 14px;
    }

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

    address,
    caption,
    cite,
    code,
    dfn,
    em,
    strong,
    th,
    i,
    b,
    strong {
    font-style: normal;
    font-weight: normal;
    }

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

    a:hover {
    text-decoration: underline;
    }

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

    ol,
    ul,
    li {
    list-style: none;
    }

    input,
    textarea,
    select,
    button {
    font: 14px Verdana, Helvetica, Arial, sans-serif;
    }

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

    html {
    overflow-y: scroll;
    }

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

    .clearfix {
    *zoom: 1;
    }

  • 相关阅读:
    HDU-5980
    HDU-5974
    HDU-5979
    关于position的定位
    javascript学习笔记w3chool
    表单相关css技巧
    fis压缩工具的使用
    将HTML页面内容存入json数组
    中介PHP连接前台HTML与数据库MySQL
    lesscss的使用
  • 原文地址:https://www.cnblogs.com/silent-190/p/9015512.html
Copyright © 2011-2022 走看看