-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtets_grid.html
More file actions
133 lines (116 loc) · 2.78 KB
/
tets_grid.html
File metadata and controls
133 lines (116 loc) · 2.78 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
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
<!-- made by 임경수 -->
<!-- 처음에 css grid 사용방법 익히고자 만든 연습코드, information.html에 이용하여 사용함 -->
<html>
<head>
<style>
body{
background-color:pink;
text-align:center;
padding:0px 20px;
margin:0px;
}
#mainbox{
justify-content:center;
width:100%;
height:100%;
display:grid;
background-color:pink;
margin:0px;
grid-template-columns : 16% 16% 16% 16% 16% 16%;
grid-template-rows : 16% 16% 16% 16% 16% 16%;
grid-gap:10px;
overflow:hidden;
}
div div{
background-color : black;
color:white;
border-radius:100px;
}
#res_name{
grid-column-start:1;
grid-column-end:7;
}
#res_pos{
grid-column-start:1;
grid-column-end:3;
grid-row-start:2;
grid-row-end:6;
}
#res_map{
grid-column-start:3;
grid-column-end:6;
grid-row-start:2;
grid-row-end:6;
width:100%;
height:100%;
background-color:pink;
border-radius:100px;
transition:width 2s, height:2s;
padding:0px;
position:relative;
}
#res_price{
grid-column-start:6;
grid-column-end:7;
grid-row-start:2;
grid-row-end:3;
}
#res_menu{
grid-column-start:6;
grid-column-end:7;
grid-row-start:3;
grid-row-end:6;
}
#res_site{
grid-column-start:1;
grid-column-end:7;
grid-row-start:6;
grid-row-end:7;
}
#res_map iframe{
width:100%;
height:90%;
border-radius:100px;
margin:0px;
}
#big_map{
width:100%;
height:10%;
background-color:blue;
border-radius:100px;
}
</style>
</head>
<body>
<div id="mainbox">
<div id="res_name">식당이름</div>
<div id="res_pos">식당위치</div>
<div id="res_map">
<button id="big_map" onclick="big_map()">전체화면으로</button>
<iframe src="https://heropy.blog/">
</iframe>
</div>
<div id="res_price">식당가격대</div>
<div id="res_menu">식당메뉴</div>
<div id="res_site">웹사이트이동</div>
</div>
<script>
var is_big = 0;
function big_map()
{
if(is_big==0)
{
is_big = 1;
document.getElementById("res_map").style.position = "absolute";
document.getElementById("big_map").innerHTML = "작은화면으로";
}
else
{
is_big = 0;
document.getElementById("res_map").style.position = "static";
document.getElementById("big_map").innerHTML = "전체화면으로";
}
}
</script>
</body>
</html>