html页面公共样式(推荐)

2019-10-23

如下所示:

XML/HTML Code复制内容到剪贴板
  1. body, div, ul, li, h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ol, form, input, textarea, th, td, select {   
  2.             margin: 0;   
  3.             padding: 0;   
  4.         }   
  5.   
  6.         * {   
  7.             box-sizing: border-box;   
  8.         }   
  9.         table{   
  10.             border-collapse:collapse;   
  11.         }   
  12.         body {   
  13.             font-family: "Microsoft YaHei";   
  14.         }   
  15.   
  16.         ul, li {   
  17.             list-style: none;   
  18.         }   
  19.   
  20.         a {   
  21.             text-decoration: none;   
  22.             color: #232323;   
  23.         }   
  24.   
  25.         input, textarea {   
  26.             outline: none;   
  27.             box-shadow: none;   
  28.         }   
  29.   
  30.         textarea {   
  31.             resize: none;   
  32.             overflow: auto;   
  33.         }   
  34.   
  35.         .clearfix {   
  36.             zoom: 1;   
  37.         }   
  38.   
  39.         .clearfix:after {   
  40.             content: ".";   
  41.             width: 0;   
  42.             height: 0;   
  43.             visibility: hidden;   
  44.             display: block;   
  45.             clear: both;   
  46.         }   
  47.   
  48.         .fl {   
  49.             float: left   
  50.         }   
  51.   
  52.         .fr {   
  53.             float: right   
  54.         }   
  55.   
  56.         .tl {   
  57.             text-align: left;   
  58.         }   
  59.   
  60.         .tc {   
  61.             text-align: center   
  62.         }   
  63.   
  64.         .tr {   
  65.             text-align: right;   
  66.         }   
  67.   
  68.         .ellipse {   
  69.             overflow: hidden;   
  70.             text-overflow: ellipsis;   
  71.             white-space: nowrap;   
  72.         }  

以上这篇html页面公共样式(推荐)就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。

《html页面公共样式(推荐).doc》

下载本文的Word格式文档,以方便收藏与打印。