-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
137 lines (130 loc) · 3.18 KB
/
index.css
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
@charset "utf-8";
/* CSS Document */
body, html ,main{
/* important */
height: 100%;
}
/*-----------------------------下面是控制底面三张图的css----------------*/
.main-content {
/* you need to assign a min-height to the main content so that the children can inherit it*/
height: 100%;
position: relative;
z-index: 1;
}
.fixed-bg {
position: relative;
min-height: 100%;
background-size:cover;
background-repeat: no-repeat;
background-position: center center;
z-index: -900;
background-attachment:fixed;
}
.fixed-bg.bg-1 {
background-image:url(%E5%9B%BE%E7%89%87/cologne-central-station-railway-station-train-163580.jpeg);
}
.fixed-bg.bg-2 {
background-image:url(%E5%9B%BE%E7%89%87/wKgB6lSwje-AXQtkABLBmrrCyrw42.jpg);
}
.fixed-bg.bg-3 {
background-image:url(%E5%9B%BE%E7%89%87/wKgB6lSwhdmAG46XABBd-plhgAs03.jpg);
}
/*---------------下面是控制浮在上面的两个模块的css--------------------*/
.scrolling-bg {
position: relative;
padding: 4em 0;
line-height: 1.6;
box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
z-index: -800;
height:350px;
}
.scrolling-bg.color-1 {
background-color: #3d3536;
color: #a6989a;
}
.scrolling-bg.color-2 {
background-color: #99a478;
color: #3d3536;
}
.scrolling-bg.color-3 {
background-color: #b4d7a8;
color: #3d3536;
}
.container {
/* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
width: 90%;
max-width: 768px;
margin: 0 auto;
align-content:center;
}
.container::after {
/* clearfix */
content: '';
display: table;
clear: both;
}
@media only screen and (min-width: 768px) {
.cd-scrolling-bg {
padding: 8em 0;
font-size: 20px;
font-size: 1.25rem;
line-height: 2;
font-weight: 300;
}
}
/*-------------------下面是应用于导航栏的css-----------------------------------*/
.top {
width: 100%;
height:12%;
top: 0;
left: 0;
background-color: rgba(112,201,175,0.78);
position: fixed;
transition: all 0.2s ease-in;
z-index: 999;
}
.top-text {
width: 70%;
min-width: 600px;
max-width: 1200px;
text-align: center;
margin: 0 auto;
overflow: hidden;
z-index: 1000;
}
.top-text {
text-align: center;
}
.top-text h2 {
font-family: "Microsoft YaHei UI", "Microsoft YaHei UI Light", "微软雅黑", "黑体";
float: left;
text-decoration: none;
color: #544;
width: 14.28%;
min-width: 80px;
transition: all 0.2s ease-in;
}
/*----------------------下面是应用于文字的css-----------------------------*/
.fixed-bg h1, .fixed-bg h2 {
position: absolute;
left: 50%;
top: 50%;
bottom: auto;
right: auto;
-webkit-transform: translateX(-50%) translateY(-50%);
-moz-transform: translateX(-50%) translateY(-50%);
-ms-transform: translateX(-50%) translateY(-50%);
-o-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
width: 90%;
max-width: 1170px;
text-align: center;
font-size: 100px;
font-size: 1.875rem;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
color: white;
}
/*-------------------------补充的css-----------------------------*/
.page_container{
height:500px;
}