• 公用的css


    /*公共开始*/
    body, ol, ul, h1, h2, h3, h4, h5, h6, p, th, td, dl, dd, form, fieldset, legend, input, textarea, select{margin:0;padding:0;}
    body{font:12px "宋体","Arial Narrow",HELVETICA;background:#FFF;-webkit-text-size-adjust:100%;color:#333;}
    a{text-decoration:none;color:#333;}
    a:hover{text-decoration:underline; color:#f88324}
    em{font-style:normal;}
    li{list-style:none;}
    img{border:0;vertical-align:middle;}
    table{border-collapse:collapse;border-spacing:0;}
    p{word-wrap:break-word;}
    .undis{display:none;}
    .dis{display:block;}
    .cf:after,.layout:after,.hd:after,.bd:after,.ft:after{content:"";display:table;clear:both;}
    .cf,.layout,.hd,.bd,.ft{*zoom:1;}
    .layout{ width:1000px; margin:0 auto}
    .fl{ float:left; _display:inline}
    .fr{ float:right; _display:inline}
    .yh{ font-family:"微软雅黑"; font-weight:normal;}
    .bgf{ background:#fff;}
    .posr{ position:relative;zoom:1}
    .mt{ margin-top:20px;}
    .borf{border:1px solid #c7d8e0; border-top:0px; background:#fff;}
    .bor{border:1px solid #c7d8e0; background:#fff;}
    /*公共结束*/
    /*新浪微博公共头部*/
    /*css hack: 9 ie6-ie8;  ie8*/
    body, button, input, select, textarea {font:12px/1.125 Arial, Helvetica, sans-serif;_font-family:"SimSun";}
    body, h1, h2, h3, h4, h5, h6, dl, dt, dd, ul, ol, li, th, td, p, blockquote, pre, form, fieldset, legend, input, button, textarea, hr {margin:0;padding:0;}
    table {border-collapse:collapse; border-spacing:0;}
    li {list-style:none;}
    fieldset, img {border:0;}
    q:before, q:after {content:'';}
    a:focus, input, textarea {outline-style:none;}/*对ie7+有效*/
    input[type="text"], input[type="password"], textarea {outline-style:none;-webkit-appearance:none;}
    textarea {resize:none}
    address, caption, cite, code, dfn, em, i, th, var, b {font-style:normal;font-weight:normal;}
    abbr, acronym {border:0;font-variant:normal;}
    
    a {color:#0a8cd2;text-decoration:none;}
    a:hover {text-decoration:underline;}
    .clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;}
    .clearfix {display: inline-block;}
    .clearfix {display: block;}
    .clear {clear:both;height:0;font:0/0 Arial;visibility:hidden;}
    
    .CH {font-family:"SimSun"}
    .W_Yahei {font-family:"Microsoft Yahei"}
    .W_Tahoma {font-family:Tahoma}
    
    .W_fs {font-size:10px;-webkit-transform:scale(0.875)}
    .W_fb {font-weight:700;}
    .W_f14 {font-size:14px}
    .W_f16 {font-size:16px}
    .W_f18 {font-size:18px}
    .W_f20 {font-size:20px}
    
    .W_fl {float:left;_display:inline}
    .W_fr {float:right;_display:inline}
    .W_tc {text-align:center;}
    .W_tr {text-align:right;}
    .W_input, .W_inputStp {
        border:1px solid #ccc;
        border-radius:2px;
        height:28px;
        height:20px9;
        padding:0 0 0 5px;
        padding:8px 0 0 5px9;
        vertical-align: middle;
        vertical-align:top9;
        color:#808080;
        -webkit-box-shadow:0px 1px 1px 0px #eaeaea inset;
        -moz-box-shadow:0px 1px 1px 0px #eaeaea inset;
        box-shadow:0px 1px 1px 0px #eaeaea inset;
    }
    textarea.W_input {
        overflow-y:auto;
        overflow-x:hidden;
    }
    :root .W_input, :root .W_inputStp {
        height:24px;
        padding:5px 0 0 5px;
    }
    .W_input_focus, .W_input:focus, .W_inputStp:focus {
        border-color:#FFB941!important;
        -webkit-box-shadow:1px 1px 1px 0px #ddd inset;
        -moz-box-shadow:1px 1px 1px 0px #ddd inset;
        box-shadow:1px 1px 1px 0px #ddd inset;
        color:#333;
    }
    .W_input_default {
        color:#b8b7b7;
    }
    .W_checkbox, .W_radio {
        vertical-align:-2px;
        _vertical-align:-3px;
        margin-right:3px;
    *margin-right:0;
    }
    .W_checkbox:focus, .W_radio:focus {
        outline-color:#ffb941;
        outline-width:1px;
        outline-style:solid;
    }
    .W_face_radius {
        border-radius:2px;
    }
  • 相关阅读:
    优秀开源项目
    详细解读Android中的搜索框(四)—— Searchable配置文件
    详细解读Android中的搜索框(三)—— SearchView
    详细解读Android中的搜索框(二)—— Search Dialog
    判断listview滑动方向的代码片段
    详细解读Android中的搜索框(一)—— 简单小例子
    通过Spannable对象设置textview的样式
    用开源项目circular progress button实现有进度条的Button
    低版本系统兼容的ActionBar(七)自定义Actionbar标题栏字体
    WebView入门
  • 原文地址:https://www.cnblogs.com/siqi/p/3250988.html
Copyright © 2020-2023  润新知