zoukankan      html  css  js  c++  java
  • css reset及部分layout样式

    /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
    html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    }
    body {
    margin: 0;
    }
    article,
    aside,
    details,
    figcaption,
    figure,
    footer,
    header,
    hgroup,
    main,
    menu,
    nav,
    section,
    summary {
    display: block;
    }
    audio,
    canvas,
    progress,
    video {
    display: inline-block;
    vertical-align: baseline;
    }
    audio:not([controls]) {
    display: none;
    height: 0;
    }
    [hidden],
    template {
    display: none;
    }
    a {
    background-color: transparent;
    }
    a:active,
    a:hover {
    outline: 0;
    }
    abbr[title] {
    border-bottom: 1px dotted;
    }
    b,
    strong {
    font-weight: bold;
    }
    dfn {
    font-style: italic;
    }
    h1 {
    font-size: 2em;
    margin: 0.67em 0;
    }
    mark {
    background: #ff0;
    color: #000;
    }
    small {
    font-size: 80%;
    }
    sub,
    sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    }
    sup {
    top: -0.5em;
    }
    sub {
    bottom: -0.25em;
    }
    img {
    border: 0;
    }
    svg:not(:root) {
    overflow: hidden;
    }
    figure {
    margin: 1em 40px;
    }
    hr {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
    }
    pre {
    overflow: auto;
    }
    code,
    kbd,
    pre,
    samp {
    font-family: monospace, monospace;
    font-size: 1em;
    }
    button,
    input,
    optgroup,
    select,
    textarea {
    color: inherit;
    font: inherit;
    margin: 0;
    }
    button {
    overflow: visible;
    }
    button,
    select {
    text-transform: none;
    }
    button,
    html input[type="button"],
    input[type="reset"],
    input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
    }
    button[disabled],
    html input[disabled] {
    cursor: default;
    }
    button::-moz-focus-inner,
    input::-moz-focus-inner {
    border: 0;
    padding: 0;
    }
    input {
    line-height: normal;
    }
    input[type="checkbox"],
    input[type="radio"] {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    }
    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
    height: auto;
    }
    input[type="search"] {
    -webkit-appearance: textfield;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    }
    input[type="search"]::-webkit-search-cancel-button,
    input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    }
    fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
    }
    legend {
    border: 0;
    padding: 0;
    }
    textarea {
    overflow: auto;
    }
    optgroup {
    font-weight: bold;
    }
    table {
    border-collapse: collapse;
    border-spacing: 0;
    }
    td,
    th {
    padding: 0;
    }




    /*这是以前的reset样式,现在新流行一种normal.css,致力于把使各个浏览器表现不一致的地方表现一致*/
    @charset "utf-8"; /*reset css for PC*/ body,div{ -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } body, dl, dd, h1, h2, h3, h4, h5, h6, form{ margin:0; } body, p, input, textarea, select, button { font-family: 'Hiragino Sans GB','5fae8f6f96c59ed1',arial,DroidSansFallback,sans-serif,simsun; /*解决移动设备滑动阻滞的问题*/ -webkit-overflow-scrolling: touch; } ol,ul{ margin:0; padding:0; list-style:inside none; } input[type='submit'], input[type='button'], input[type='reset'],a { cursor: pointer; } textarea { resize: vertical; } a:link, a:visited { text-decoration: none; } p{ text-align: justify; word-break: break-word; } i, em, address { font-style: normal; } table { border-collapse: collapse; margin: 0; } h1, h2, h3, h4, h5, h6 { font-weight: normal; vertical-align: middle; } header, section, article, aside, footer, nav, dialog, figure { display: block; } img { max- 100%; height: auto; border: none; /*IE下图片缩放失真的解决方法*/ -ms-interpolation-mode: bicubic; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } :focus{ outline:0; } ::selection { background: #e57779; color: #fff; } ::-moz-selection { background: #e57779; color: #fff; } /*form placeholder*/ :-moz-placeholder { /* Firefox 18- */} ::-moz-placeholder {/* Firefox 19+ */} /*layout css*/ .wrap { 1000px; margin: 0 auto; } .limit { 100%; overflow: hidden; } .pr { position: relative; z-index: 0; } .pa { position: absolute; } .fl { float: left; _display: inline;/*IE6 解决双边距问题*/ } .fr { float: right; _display: inline;/*IE6 解决双边距问题*/ } .clearfix:after, .tolist:after { content:"200B"; display:block; height:0; clear:both; } .tolist li { float: left; display: block; } .tolist li:last-child { margin-right: 0 !important; } .radius { border-radius: 50%; -moz-border-radius: 50%; -webkit-border-radius: 50%; } .ellipsis { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /*WebKit*/ .ellipsis_3 { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } .opacity_bg { background: rgba(0, 0, 0, 0.8); filter: progid:DXImageTransform.Microsoft.gradient(startcolorstr=#AF000000,endcolorstr=#AF000000,gradientType=1); /*filter:alpha(opacity=50);*/ /*-moz-opacity:0.5;*/ /*-khtml-opacity:0.5;*/ /*opacity: 0.5;*/ } /*page*/ .page { padding: 30px 0 60px 0; text-align: center; } .pages{ display: inline-block; } .pages a { display: inline-block; color: #999; font-family: simsun; padding: 1px 15px; border: 1px solid #bdbdbd; } .pages .on,.pages a:hover { border: 1px solid #00B786; color: #FFFFFF; background: #00B786; } .page .prev,.page .next,.page .prev a,.page .next a{ font-size: 14px; color: #999; font-family: simsun; display: inline-block;} .page .prev{ float: left;} .page .next{ float: right;} .page .prev a,.page .next a{ color: #79503E;} .page .prev a:hover,.page .next a:hover{ text-decoration: underline;}

      

  • 相关阅读:
    textarea 里设置 style="resize:none"
    linux 脚本
    RabbitMQ、Redis、ZeroMQ、ActiveMQ、Kafka/Jafka对比
    python安装过程
    linux下安装python3
    java实现定时任务 Schedule
    Spring 定时任务之 @Scheduled cron表达式
    docker部署
    设备连接服务器
    springboot实现fileUpLoad
  • 原文地址:https://www.cnblogs.com/BaishangBloom/p/4657241.html
Copyright © 2011-2022 走看看