如下所示:
XML/HTML Code复制内容到剪贴板
    - body, div, ul, li, h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ol, form, input, textarea, th, td, select {   
 
    -             margin: 0;   
 
    -             padding: 0;   
 
    -         }   
 
    -   
 
    -         * {   
 
    -             box-sizing: border-box;   
 
    -         }   
 
    -         table{   
 
    -             border-collapse:collapse;   
 
    -         }   
 
    -         body {   
 
    -             font-family: "Microsoft YaHei";   
 
    -         }   
 
    -   
 
    -         ul, li {   
 
    -             list-style: none;   
 
    -         }   
 
    -   
 
    -         a {   
 
    -             text-decoration: none;   
 
    -             color: #232323;   
 
    -         }   
 
    -   
 
    -         input, textarea {   
 
    -             outline: none;   
 
    -             box-shadow: none;   
 
    -         }   
 
    -   
 
    -         textarea {   
 
    -             resize: none;   
 
    -             overflow: auto;   
 
    -         }   
 
    -   
 
    -         .clearfix {   
 
    -             zoom: 1;   
 
    -         }   
 
    -   
 
    -         .clearfix:after {   
 
    -             content: ".";   
 
    -             width: 0;   
 
    -             height: 0;   
 
    -             visibility: hidden;   
 
    -             display: block;   
 
    -             clear: both;   
 
    -         }   
 
    -   
 
    -         .fl {   
 
    -             float: left   
 
    -         }   
 
    -   
 
    -         .fr {   
 
    -             float: right   
 
    -         }   
 
    -   
 
    -         .tl {   
 
    -             text-align: left;   
 
    -         }   
 
    -   
 
    -         .tc {   
 
    -             text-align: center   
 
    -         }   
 
    -   
 
    -         .tr {   
 
    -             text-align: right;   
 
    -         }   
 
    -   
 
    -         .ellipse {   
 
    -             overflow: hidden;   
 
    -             text-overflow: ellipsis;   
 
    -             white-space: nowrap;   
 
    -         }  
 
以上这篇html页面公共样式(推荐)就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。