Skip to content

Commit bf26aae

Browse files
committed
更换背景图片,并使欢迎文字屏幕居中。
1 parent 067dae2 commit bf26aae

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

html_bg.jpg

-50.1 KB
Loading

index.html

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,32 @@
1212
width:100%;
1313
height:100%;
1414
color:#ffffff;
15+
font-family:"Hiragino Sans GB","Microsoft YaHei","微软雅黑",tahoma,arial,simsun,"宋体";
16+
}
17+
#container{
18+
width:800px;
19+
height:160px;
20+
position: absolute;
21+
left: 50%;
22+
top: 50%;
23+
margin-left:-400px;
24+
margin-top: -80px;
25+
background-color:#000000;
26+
opacity:0.5;
27+
}
28+
#container p{
29+
font-size:36px;
30+
margin:28px;
1531
}
1632
</style>
1733
</head>
1834

1935
<body>
20-
<h1>Welcome to Jeby Sun's website!</h1>
21-
<h2>欢迎来到Jeby Sun的GitHub首页!</h2>
36+
<div id="container">
37+
<p>
38+
Welcome to Jeby Sun's GitHub index!
39+
<br/>
40+
欢迎来到Jeby Sun的GitHub首页!
41+
</p>
42+
</div>
2243
</body>

0 commit comments

Comments
 (0)