-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreset.css
More file actions
56 lines (51 loc) · 2.27 KB
/
reset.css
File metadata and controls
56 lines (51 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@charset "utf-8";
/*!
* reset - v1.2.1 - 11/9/2020 https://blog.csdn.net/Serena_tz By Serena
*/
html{ font-size:100%;height: 100%; }
body{
background: #fff;
font-size: 0.14rem;
/*默认的手机端字体:Helvetica,加微软雅黑是为了在PC上也能模拟类似于手机上的字体效果*/
font-family: Helvetica,"微软雅黑",-apple-system,sans-serif;
/* 行高1.5倍 */
line-height: 1.5;
/*禁止文字自动被浏览器缩放 */
text-size-adjust: 100%!important;
overflow-x: hidden;}
a, abbr, address, article, aside, audio, b, blockquote, body, caption, cite, code, dd, del, dfn, dialog, div, dl, dt, em, fieldset, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, p, pre, q, samp, section, small, span, strong, sub, sup, tfoot, th, thead, time, tr, ul, var, video{
border: 0;margin: 0;outline: 0;padding: 0;box-sizing: border-box;
/*清除点击阴影*/
-webkit-tap-highlight-color: rgba(255,255,255,0);
/*让字体更顺滑,无锯齿*/
-webkit-font-smoothing: antialiased;}
ol,ul,li{list-style:none;}
b,i,u{font-style:normal;font-weight:normal;text-decoration:none;}
table{border-collapse:collapse;}
fieldset,img{border:none;outline:none;}
input,button,select,textarea{font-family:Helvetica; border:none;outline:none;
/*消除按钮默认的圆角外观*/
-webkit-appearance:none;
-webkit-tap-highlight-color:transparent;}
a{text-decoration:none; outline:none;}
/*清除浮动*/
.clearfix:after{content:"\0020"; height:0; display:block; clear:both; overflow:hidden}
/*文本省略号*/
.cutFont {white-space: nowrap;text-overflow: ellipsis;overflow: hidden;}
/*位置与浮动*/
.fl {float :left }
.fr {float :right }
.pore {position :relative}
.tl {text-align :left }
.tc {text-align :center }
.tr {text-align :right }
.txj {text-align :justify }
/*文字 文字对齐方式*/
.tc {text-align :center}
.tl {text-align :left }
.tr {text-align :right }
.fb {font-weight:bold }
.cutFont{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
/*颜色,背景色等,根据网站的主色、辅色来设置、调整*/
.black {color:#000}
.bgblack {background-color: #000}