项目开发前准备——清除默认样式

清除默认样式代码:

   

 1 @charset "utf-8";
 2 html,body,ul,li,ol,dl,dd,dt,p,h1,h2,h3,h4,h5,h6,form,fieldset,legend,img,input{
 3     margin:0;
 4     padding:0;
 5 }
 6 body{
 7     font-size:16px;
 8     font-family: "微软雅黑";
 9 }
10 h1,h2,h3,h4,h5,h6{
11     font-size:16px;
12     font-weight: normal;
13 }
14 ul,ol,li{
15     list-style:none;
16 }
17 em,i{
18     font-style: normal;
19 }
20 b,strong{
21     font-weight: normal;
22 }
23 a,u{
24     text-decoration: none;
25 }
26 img{
27     border:0;
28 }
29 input{
30     outline: none;
31 }
32 input{
33     border: 0;
34     background-color:transparent;
35     outline: none;
36     margin: 0;
37 }
38 /* 公共样式 */
39 .border_none{
40     border:none!important;
41 }
42 .border-left_none{
43     border-left:none!important;
44 }
45 .border-right_none{
46     border-right:none!important;
47 }
48 .float_left{
49     float:left;
50 }
51 .float_right{
52     float:right;
53 }
54 .margin-right0{
55     margin-right: 0!important;
56 }
57 .bg_none{
58     background:none!important;/*清除背景*/
59 }
60 .clear_fix:after{
61     content:".";
62     clear:both;
63     display:block;
64     height:0;
65     overflow:hidden;
66     visibility: hidden;
67 }

 

posted @ 2020-06-01 11:39  魔露西  阅读(221)  评论(0编辑  收藏  举报