Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

俊豪 #7

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/img.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
*{
margin:0px auto;
}
body{
width: 800px;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同若慈的問題~
body的寬度就是瀏覽器的寬度,所以通常不會有人在body中設定width哦
這邊做法還是得使用一個container div包住所有元素~再設定container的width


text-align: center;
background-color: grey;
}
#headerimg{
width:100%;
height: 300px;
}
#menu{
width: 100%;
height:50px;
background-color: rgb(27, 122, 247);
}
ul{
margin: 0px;
padding: 15px;
}
ul li{
display:inline-block;
list-style: none;
text-align: center;
margin: 0px 10px;
padding: 0px;
}
ul li a{
text-decoration: none;
font-size: 20px;
color:black;
}
a:hover{
color:rgb(4, 88, 37);
}
#content{
width: 100%;
height: 450px;
background-color: bisque;
text-align: center;
}
h1{
font-weight: 10cm;
font-family:Arial;
}
span{
text-align: center;
}
button{
padding:10px;
font-size: 20px;
font-family: Arial;
background-color: rgb(27, 122, 247);
border: none;
}
#footer{
width: 100%;
height: 25px;
background-color: white;
font-family: Arial;
}
60 changes: 60 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div id="header">
<div id="headerimg">
<img src="assets/img.jpg" height="300" width="800">
</div>
<div id="menu">
<ul>
<li>
<a href="#">Home</a>
</li>
<li>
<a href="#">Story</a>
</li>
<li>
<a href="#">Poem</a>
</li>
<li>
<a href="#">About</a>
</li>
</ul>
</div>
</div>
<div id="content">
<h1>輸了你 贏了世界又如何</h1>
<br>
<span>
朦朧之間 彷彿我又看見妳的臉<br>
依然帶著淡淡憂愁的雙眼 忽隱忽現<br>
就當全是一場夢 不必掩飾我的錯<br>
無奈的苦笑不必找牽強的理由<br>
就讓它日日夜夜刺痛我胸口<br>
讓我眼神沒有焦點<br>
淚水模糊我的視線<br>
更多更詳盡歌詞 <br>
輸了妳 贏了世界又如何<br>
妳曾渴望的夢 我想我永遠不會懂我<br>
失去妳 贏了一切卻依然如此冷清<br>
有誰又能讓我傾心 除了妳<br>
妳我之間 難道沒有剩下一點點<br>
一點曾經刻骨銘心的眷戀 讓妳掛念<br>
我只能說如今我已無處可躲<br>

當我默默黯然回首 當我看盡潮起潮落<br>
</span>
<br>
<button>ReadMore</button>
</div>
<div id="footer">
<p>Copyright&copy;2017JumHau</p>
</div>
</body>
</html>