Commit 35ad5bba585531d2884c7ecfadc238337bd31e3c
1 parent
cd9fc754
init
Showing
3 changed files
with
37 additions
and
2 deletions
.idea/vcs.xml
0 → 100644
css/libCss/common.css
0 → 100644
| 1 | +body{ | ||
| 2 | + position: relative; | ||
| 3 | +} | ||
| 4 | +body,html{ | ||
| 5 | + width: 100%; | ||
| 6 | + height: 100%; | ||
| 7 | +} | ||
| 8 | +header{ | ||
| 9 | + height: 100px; | ||
| 10 | + width: 100%; | ||
| 11 | + background-color: #f00; | ||
| 12 | +} | ||
| 13 | +nav{ | ||
| 14 | + position: absolute; | ||
| 15 | + width: 100px; | ||
| 16 | + height: 100%; | ||
| 17 | + background-color: #000; | ||
| 18 | + left: 0; | ||
| 19 | + top:0; | ||
| 20 | + padding-top: 100px; | ||
| 21 | +} | ||
| 22 | +section{ | ||
| 23 | + width: 100%; | ||
| 24 | + height: 100%; | ||
| 25 | + padding-left: 100px; | ||
| 26 | +} | ||
| 0 | \ No newline at end of file | 27 | \ No newline at end of file |
123.html renamed to index.html
| @@ -2,9 +2,12 @@ | @@ -2,9 +2,12 @@ | ||
| 2 | <html lang="en"> | 2 | <html lang="en"> |
| 3 | <head> | 3 | <head> |
| 4 | <meta charset="UTF-8"> | 4 | <meta charset="UTF-8"> |
| 5 | - <title>Title</title> | 5 | + <title>首页</title> |
| 6 | + <link rel="stylesheet" href="css/libCss/common.css"> | ||
| 6 | </head> | 7 | </head> |
| 7 | <body> | 8 | <body> |
| 8 | - | 9 | +<header>header</header> |
| 10 | +<nav>nav</nav> | ||
| 11 | +<section>header</section> | ||
| 9 | </body> | 12 | </body> |
| 10 | </html> | 13 | </html> |
| 11 | \ No newline at end of file | 14 | \ No newline at end of file |