-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0824.scss
59 lines (59 loc) · 1.07 KB
/
0824.scss
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
// @import"scss/reset";
// @import"layout";
// @import"index";
// @import"product";
// @import"login";
/*總整理*/
@import"scss/bootstrap-4.5.2/scss/bootstrap.scss";
*,*:before,*:after{/*RWD必加*/
box-sizing: border-box;
}
img{/*RWD必寫*/
max-width: 100%;
height: auto;
}
h1{
color: blue;
}
.box{
height: 50px;
background-color: #000;
width: 50px;/*寬度50px,because *:before->寬度多少就多少*/
padding-right: 10px;
border-right: 3px;
}
.container{
display: flex;
height: 500px;
// width: 400px;
max-width: 400px;
background-color: green;
flex-direction: row-reverse;/*1-3 -> 3-1*/
}
@media(max-width:768px)
{
.container{
flex-direction: column;
}
}
.item{
color: #fff;
font-size: 30px;
text-align: center;
width: 100px;
height: 40px;
margin: 0 10px;
background-color: blue;
}
.content{
/*不寫死高度*/
padding: 10px;
background-color: pink;
color: #fff;
margin-bottom: 50px;
}
.footer{
background-color: gray;
padding: 10px;
color: #fff;
}