• 【代码片段】reset样式针对bootstrap


    /* 
        Document    : reset.css
        Created on  : 2013-02-25
        Author      : Kojya
        Description : Style sheet for reset.
    */
    
    /* 
     * 重置样式
     * 附加重置样式
    */
    
    /*------------------------------------------------ 重置样式(已压缩) ------------------------------------------------*/
    
    
    * {margin: 0;padding: 0;}
    .clear {clear: both;display: block;overflow: hidden;visibility: hidden;width: 0;height: 0;}
    .clearfix {*zoom: 1;}
    
    .clearfix:before,
    .clearfix:after {display: table;line-height: 0;content: "";}
    
    .clearfix:after {clear: both;}
    .hide-text {font: 0/0 a;color: transparent;text-shadow: none;background-color: transparent;border: 0;}
    .input-block-level {display: block;width: 100%;min-height: 30px;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;}
    
    article,
    aside,
    details,
    figcaption,
    figure,
    footer,
    header,
    hgroup,
    nav,
    section {display: block;}
    
    audio,
    canvas,
    video {display: inline-block;*display: inline;*zoom: 1;}
    
    audio:not([controls]) {display: none;}
    html {font-size: 100%;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;}
    a:focus {outline: thin dotted #333;outline: 5px auto -webkit-focus-ring-color;outline-offset: -2px;}
    
    a:hover,
    a:active {outline: 0;}
    
    sub,
    sup {position: relative;font-size: 75%;line-height: 0;vertical-align: baseline;}
    
    sup {top: -0.5em;}
    sub {bottom: -0.25em;}
    
    img {width: auto\9;height: auto;
      max-width: 100%;
      vertical-align: middle;
      border: 0;
      -ms-interpolation-mode: bicubic;
    }
    
    #map_canvas img,
    .google-maps img {max-width: none;}
    
    button,
    input,
    select,
    textarea {margin: 0;font-size: 100%;vertical-align: middle;}
    
    button,
    input {*overflow: visible;line-height: normal;}
    
    button::-moz-focus-inner,
    input::-moz-focus-inner {padding: 0;border: 0;}
    
    button,
    html input[type="button"],
    input[type="reset"],
    input[type="submit"] {cursor: pointer;-webkit-appearance: button;}
    
    label,
    select,
    button,
    input[type="button"],
    input[type="reset"],
    input[type="submit"],
    input[type="radio"],
    input[type="checkbox"] {cursor: pointer;}
    
    input[type="search"] {-webkit-box-sizing: content-box;-moz-box-sizing: content-box;box-sizing: content-box;-webkit-appearance: textfield;}
    
    input[type="search"]::-webkit-search-decoration,
    input[type="search"]::-webkit-search-cancel-button {-webkit-appearance: none;}
    
    textarea {overflow: auto;vertical-align: top;}
    
    @media print {
      * {color: #000 !important;text-shadow: none !important;background: transparent !important;box-shadow: none !important;}
      
      a,
      a:visited {text-decoration: underline;}
      a[href]:after {content: " (" attr(href) ")";}
      abbr[title]:after {content: " (" attr(title) ")";}
      
      .ir a:after,
      a[href^="javascript:"]:after,
      a[href^="#"]:after {content: "";}
      
      pre,
      blockquote {border: 1px solid #999;page-break-inside: avoid;}
      
      thead {display: table-header-group;}
      
      tr,
      img {page-break-inside: avoid;}
      img {max-width: 100% !important;}
      @page  {margin: 0.5cm;}
      
      p,
      h2,
      h3 {orphans: 3;widows: 3;}
      
      h2,
      h3 {page-break-after: avoid;}
    }
    
    
    /*------------------------------------------------ 附加重置样式(未压缩) ------------------------------------------------*/
  • 相关阅读:
    IOS设计模式之四(备忘录模式,命令模式)
    IOS设计模式之三(适配器模式,观察者模式)
    IOS设计模式之二(门面模式,装饰器模式)
    IOS设计模式之一(MVC模式,单例模式)
    C#调用C++导出(dllexport)方法
    C# 多任务之 Task
    C# Remoting的一个简单例子
    C#中指针使用总结
    C# fixed详解
    C#中virtual和abstract的区别
  • 原文地址:https://www.cnblogs.com/kojya/p/2932167.html
Copyright © 2020-2023  润新知