Skip to content

Commit 9d312ba

Browse files
authored
Add files via upload
1 parent 01ae7e8 commit 9d312ba

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

_includes/intro-header.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<style type="text/css">
88
header.intro-header{
99
position: relative;
10+
height: 66vh; /* 修改高度为视窗高度的三分之二 */
1011
background-image: url('{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}');
1112
background: {{ page.header-bg-css }};
1213
}

_layouts/default.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,11 @@
2121
</body>
2222

2323
</html>
24+
25+
<style>
26+
/* 覆盖默认高度 */
27+
header.intro-header {
28+
height: 66vh !important;
29+
min-height: 400px; /* 保持最小高度 */
30+
}
31+
</style>

0 commit comments

Comments
 (0)