Skip to content

Commit a7a6671

Browse files
committed
remove img a-link & modify css for movile view
1 parent 5207ee8 commit a7a6671

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
ga('send', 'pageview');
2626
</script>
2727
<title>JavaScript30 - Course List | Gua's Note</title>
28-
<link rel="stylesheet" href="style.css">
28+
<link rel="stylesheet" href="style.css?20171123001">
2929
</head>
3030
<body>
3131
<div class="container">
@@ -42,7 +42,7 @@ <h1 class="head__title">JavaScript 30</h1>
4242
</div>
4343
<ul class="courseList"></ul>
4444
</div>
45-
<script src="script.js"></script>
45+
<script src="script.js?20171123001"></script>
4646
<script>
4747
/** 檢查是否有成功渲染列表 */
4848
document.onload = function() {

script.js

Lines changed: 9 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

style.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ body {
1111
}
1212
.container {
1313
padding: 30px 0px;
14-
min-width: 500px;
1514
text-align: center;
1615
}
1716

@@ -211,4 +210,13 @@ body {
211210
to {
212211
transform: translate(-50%, -50%) rotate(360deg);
213212
}
213+
}
214+
215+
@media screen and (max-width: 500px) {
216+
.container {
217+
width: 100%;
218+
}
219+
.course {
220+
width: 100%;
221+
}
214222
}

0 commit comments

Comments
 (0)