File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ * {
3+ padding : 0 ;
4+ margin : 0 ;
5+ }
6+ a {
7+ text-decoration : none;
8+ color : # ffffff;
9+ }
10+ . header {
11+ width : 100% ;
12+ height : 100px ;
13+ background-color : rgb ( 198 , 195 , 212 ) ;
14+ text-align : center;
15+ line-height : 100px ;
16+ color : # 865a5a;
17+ }
18+ . section_left {
19+ width : 16% ;
20+ height : 500px ;
21+ float : left;
22+ background-color : rgb ( 173 , 145 , 145 ) ;
23+ }
24+ . section_left ul li {
25+ list-style : none;
26+ width : 100% ;
27+ height : 50px ;
28+ border-bottom : 1px solid # ffffff;
29+ text-align : center;
30+ line-height : 50px ;
31+ }
32+ . sidebar_right {
33+ width : 78% ;
34+ float : right;
35+ height : 470px ;
36+ background-color : rgb ( 105 , 90 , 90 ) ;
37+ margin-right : 3% ;
38+ margin-top : 15px ;
39+ text-align : center;
40+ line-height : 470px ;
41+ border-radius : 10px ;
42+ color : # e6cdcd;
43+ }
44+ . footer {
45+ width : 100% ;
46+ height : 100px ;
47+ background-color : rgb ( 190 , 195 , 216 ) ;
48+ clear : both;
49+ text-align : center;
50+ line-height : 100px ;
51+ color : # 925959;
52+ }
Original file line number Diff line number Diff line change 88 < link rel ="stylesheet " href ="./css/main.css ">
99</ head >
1010< body >
11-
11+ < header class ="header ">
12+ < h1 > 我是头部</ h1 >
13+ </ header >
14+ <!-- 左侧导航栏 -->
15+ < section class ="section_left ">
16+ < ul >
17+ < li >
18+ < a href ="#/ "> 这是默认菜单</ a >
19+ </ li >
20+ < li >
21+ < a href ="#/html "> HTML学习</ a >
22+ </ li >
23+ < li >
24+ < a href ="#/css "> CSS学习</ a >
25+ </ li >
26+ < li >
27+ < a href ="#/javascript "> Javascript学习</ a >
28+ </ li >
29+ </ ul >
30+ </ section >
31+ <!-- 右侧内容显示区域 -->
32+ < sidebar class ="sidebar_right ">
33+ < h1 > 我是默认内容</ h1 >
34+ </ sidebar >
35+ <!-- 底部 -->
36+ < footer class ="footer ">
37+ < h1 > 我是底部</ h1 >
38+ </ footer >
1239</ body >
1340< script src ="./js/main.js "> </ script >
1441</ html >
You can’t perform that action at this time.
0 commit comments