JSDM

HTML

15
 
1
<div class="section">
2
  Pure CSS fullscreen section with 100% of viewport height
3
  <i class="fa fa-chevron-down"></i>
4
</div>
5
<div class="section">
6
  Pure CSS fullscreen section with 90% of viewport height
7
  <i class="fa fa-chevron-down"></i>
8
</div>
9
<div class="section">
10
  Pure CSS fullscreen section with 70% of viewport height
11
  <i class="fa fa-chevron-down"></i>
12
</div>
13
<div class="section">
14
  Pure CSS fullscreen section with 100% of viewport height
15
</div>
!

CSS

x
 
1
@import url(http://fonts.lug.ustc.edu.cn/css?family=Roboto+Slab:400,700);
2
3
.section{
4
  font-family: 'Roboto Slab', serif;
5
  font-weight: 500;
6
  font-size: 2em;
7
  color: #fff;
8
  box-sizing: border-box;
9
  width: 100%;
10
  position: relative;
11
  float: left;
12
  text-align: center;
13
  
14
  &:nth-child(1){
15
    height: 100vh;
16
    line-height: 100vh;
17
    background: #3498db;
18
  }
19
  &:nth-child(2){
20
    height: 90vh;
21
    line-height: 90vh;
22
    background: #e74c3c;
23
  }
24
  &:nth-child(3){
25
    height: 70vh;
26
    line-height: 70vh;
27
    background: #1abc9c;
28
  }
29
  &:nth-child(4){
30
    height: 100vh;
31
    line-height: 100vh;
32
    background: url('http://cdn.jsdm.com/2/14979299068_4d3bdde60c_o-1400x581.jpg');
33
    background-size: cover;
34
  }
35
  i{
36
    width: 32px;
37
    height: 32px;
38
    position: absolute;
39
    color: #fff;
40
    bottom: 5%;
41
    left: 50%;
42
    margin-left: -16px;
43
  }
44
}
!
? ?
? ?
必须是有效的URL
+ 添加另一个资源

JS

1
 
1
!
必须是有效的URL
+ 添加另一个资源
Close

文件管理 点击文件查看URL

图片

  1. 暂无文件

CSS

  1. 暂无文件

JavaScript

  1. 暂无文件

其他

  1. 暂无文件
拖动文件到上面的区域或者:
加载中 ..................