Skip to content

Commit 80fbc94

Browse files
authored
Create 背景居中
1 parent 0c65c6a commit 80fbc94

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

背景居中

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@charset='utf-8';
2+
*
3+
{
4+
margin: 0;
5+
padding: 0;
6+
}
7+
.nav
8+
{
9+
width: 100%;
10+
height: 600px;
11+
12+
background: url(images/Banner.jpg) center center no-repeat;
13+
}
14+
/*.nav img{width:1000px;text-align:center;margin:0 auto;}*/
15+
.banner
16+
{
17+
width: 1200px;
18+
height: 600px;
19+
margin: 0 auto;
20+
}

0 commit comments

Comments
 (0)