前端css公共样式

 其中清除浮动的类名为clearfix

 1 @charset 'utf-8';
 2 h1,h2,h3,h4,h5,h6,ul,li,ol,dl,dd,dt,table,form,body
 3 /* body是浏览器默认样式 */
 4 {
 5     margin: 0px;
 6     padding: 0px;
 7     font-family: '微软雅黑';
 8 }
 9 a{
10     text-decoration: noene;
11     color: #333;
12 }
13 ul,ol{
14     list-style: none;
15 }
16 img{
17     display: block;
18     border: none;
19 }
20 input,textarea,select{
21     outline: none;           
22     /* 清除输入框边框的线 */
23 }
24 textarea{
25     resize: none;
26     /*  */
27 }
28 table{
29     border-collapse: collapse;
30     /* 边框线合并 */
31 }
32 .clearfix:after{
33     content: '';
34     clear: both;
35     display: block;
36     /* 去掉浮动 */
37 }
38 a{
39     text-decoration: none;
40 }
原文地址:https://www.cnblogs.com/gubaba/p/14968873.html