zoukankan      html  css  js  c++  java
  • 通用样式,如清除浮动

    html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img {
    margin: 0;
    padding: 0;
    }

    /*各浏览器显示不同,去掉蓝色边框*/
    fieldset, img, input, button {
    border: none;
    padding: 0;
    margin: 0;
    outline-style: none;
    }

    ul, ol {
    list-style: none;
    }

    input {
    padding-top: 0;
    padding-bottom: 0;
    font-family: "SimSun", "宋体";
    }

    /*去掉行内替换元素空白缝隙*/
    select, input {
    vertical-align: middle;
    }

    /*去掉行内替换元素空白缝隙*/
    img {
    border: 0;
    vertical-align: middle;
    }

    select, input, textarea {
    font-size: 12px;
    margin: 0;
    }

    /*防止拖动 影响布局*/
    textarea {
    resize: none;
    }

    table {
    border-collapse: collapse;
    }

    body {
    font: 12px/150% Arial, Verdana, "5b8b4f53"; /*宋体 unicode */
    color: #666;
    background: #fff;
    }

    /*清除浮动*/
    .clearfix:before, .clearfix:after {
    content: "";
    display: table;
    }

    .clearfix:after {
    clear: both;
    }
    .clearfix:after{
    content:'';
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
    }
    .clearfix {
    *zoom: 1; /*IE/7/6*/
    }

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

    a:hover {
    color: #C81623;
    }

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

    s, i, em {
    font-style: normal;
    text-decoration: none;
    }

    /*京东色*/
    .col-red {
    color: #C81623 !important;
    }

    /*公共类*/
    .w {
    /*版心 提取 */
    1210px;
    margin: 0 auto;
    }

    .fl {
    float: left;
    }

    .fr {
    float: right;
    }

    .al {
    text-align: left;
    }

    .ac {
    text-align: center;
    }

    .ar {
    text-align: right;
    }

    .hide {
    display: none;
    }
    .nav{
    background:#f5f5f5;
    }
    .head{
    1190px;
    height: 35px;
    margin: 0 auto;
    background: #f5f5f5;
    }
    .head .nav-l{
    float: left;
    padding-top:10px;
    }
    .head .nav-r{
    padding-top: 10px;
    float: right;
    }
    .head
    .clearfix:after1{
    content:"";
    display: block;
    height:0;
    clear:both;
    visibility: hidden;
    }
    a{
    text-decoration: none;
    color: black;
    }
    li{
    display: inline-block;
    list-style:none;
    }

  • 相关阅读:
    [zz] 从VMM中终止GUEST OS中运行进程
    [zz]Linux流量监控工具 – iftop (最全面的iftop教程)
    [zz]Ubuntu终端下Nethogs网络流量监控工具
    AtomicBoolean运用
    JDK中的URLConnection参数详解
    java读取文本文件数据
    tomcat时区设置
    java的upload
    java复习(set 、list、map)
    NIO学习笔记1
  • 原文地址:https://www.cnblogs.com/aaaaap/p/9764759.html
Copyright © 2011-2022 走看看