-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47022e2
commit f08d9cc
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="zh-Hans"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Full Card List</title> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<ul> | ||
<li></li> | ||
<li></li> | ||
<li></li> | ||
<li></li> | ||
<li></li> | ||
<li></li> | ||
</ul> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
div,ul,li{ | ||
margin:0; | ||
padding:0; | ||
} | ||
body{ | ||
background: #f2f2f2; | ||
} | ||
.container{ | ||
margin: 40px auto -20px; | ||
width:1200px; | ||
overflow: hidden; | ||
background: #ddd; | ||
} | ||
ul{ | ||
margin:0 0 -20px -20px; | ||
list-style: none; | ||
display:table;//这两个属性是消除 | ||
word-spacing: -6px;//li 中display:inline-block 带来的间距 | ||
} | ||
li{ | ||
display: inline-block; | ||
margin:0 0 20px 20px; | ||
vertical-align: top; | ||
width: 285px; | ||
height: 200px; | ||
background: #bbb; | ||
} |