zoukankan      html  css  js  c++  java
  • 移动端布局要用到的东西

    1.多行文本溢出隐藏

    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;

    2.单行文本溢出隐藏

    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    

    3.css reset

    @charset "utf-8";
    html,
    body,
    div,
    span,
    applet,
    object,
    iframe,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    blockquote,
    pre,
    a,
    abbr,
    acronym,
    address,
    big,
    cite,
    code,
    del,
    dfn,
    em,
    font,
    img,
    ins,
    kbd,
    q,
    s,
    samp,
    small,
    strike,
    strong,
    sub,
    sup,
    tt,
    var,
    dl,
    dt,
    dd,
    ol,
    ul,
    li,
    fieldset,
    form,
    label,
    legend,
    table,
    caption,
    tbody,
    tfoot,
    thead,
    tr,
    th,
    td {
        margin: 0;
        padding: 0;
        border: 0;
        outline: 0;
        font-weight: inherit;
        font-style: inherit;
        font-size: 100%;
        font-family: inherit;
        vertical-align: baseline;
         100%;
        height: 100%;
    }
     
    html {
        font-family: 'sans-serif', "Microsoft YaHei", "微软雅黑", "Tahoma", "Helvetica";
        font-size: 10px;
     
        background: #fff;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
    }
     
    table {
        border-collapse: collapse;
        border-spacing: 0;
    }
     
    img {
        border: 0; max- 100%!important;
        vertical-align: middle;
    }
     
    address,
    caption,
    cite,
    code,
    dfn,
    i,
    em,
    strong,
    th,
    var {
        font-weight: normal;
        font-style: normal;
    }
     
    ol,
    ul {
        list-style: none;
    }
     
    a {
        text-decoration: none;
    }
     
    a:hover,
    a:focus {
        outline: none;
    }
     
    caption,
    th {
        text-align: left;
        font-weight: normal;
    }
     
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-weight: normal;
        font-size: 100%;
    }
     
    q:before,
    q:after {
        content: ”;
    }
     
    abbr,
    acronym {
        border: 0;
    }
     
    button,
    input,
    optgroup,
    select,
    textarea {
        margin: 0;
        font: inherit;
        color: inherit;
    }
     
    * {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box
    }
     
    :before,
    :after {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
     
    input[type=search]::-webkit-search-cancel-button,
    input[type=search]::-webkit-search-decoration {
        -webkit-appearance: none;
    }
     
    article,
    aside,
    details,
    figcaption,
    figure,
    footer,
    header,
    hgroup,
    nav,
    section,
    summary {
        display: block;
    }
     
    

      

  • 相关阅读:
    java、maven环境搭建
    httpclient的get和post
    使用批处理命令定期清理删除指定后缀文件,释放空间
    WebService—规范介绍和几种实现WebService的框架介绍
    Delphi7 ADO面板上的控件简介
    sqlserver中判断表或临时表是否存在
    Delphi中Format与FormatDateTime函数详解
    delphi弹出信息框大全
    Delphi 日期时间函数
    Delphi7数据库编程之TDataSet(转)
  • 原文地址:https://www.cnblogs.com/zph666/p/10468617.html
Copyright © 2011-2022 走看看