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
Showing
3 changed files
with
172 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,53 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=Edge chrome=1" /> | ||
<title> CSS sprites</title> | ||
<style> | ||
/**{ | ||
margin: 0px; | ||
padding: 0px; | ||
}*/ | ||
.icon{ | ||
width: 100px; | ||
height: 40px; | ||
display: inline-block; | ||
background: url(http://csssprites.com/results/c179c90432ffd5f54d2897f11d3f78bd/result.png) 0 0 no-repeat; | ||
cursor: pointer; | ||
padding-left: 35px; | ||
font-family: "Microsoft YaHei"; | ||
line-height: 35px; | ||
} | ||
.s1{ | ||
background-position: 2px 1px; | ||
} | ||
.s1:hover{ | ||
background-position: 1px -134px; | ||
} | ||
.s2{ | ||
background-position: 4px -42px; | ||
} | ||
.s2:hover{ | ||
background-position: -1px -183px; | ||
} | ||
.s3{ | ||
background-position: -1px -90px; | ||
} | ||
.s3:hover{ | ||
background-position: 3px -228px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="icon s1"> | ||
<span class="foeward">前进</span> | ||
</div> | ||
<div class="icon s2"> | ||
<span class="begin">开始</span> | ||
</div> | ||
<div class="icon s3"> | ||
<span class="stop">停止</span> | ||
</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,56 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=Edge chrome=1" /> | ||
<title> CSS sprites</title> | ||
<style> | ||
/**{ | ||
margin: 0px; | ||
padding: 0px; | ||
}*/ | ||
.icon{ | ||
width: 100px; | ||
height: 40px; | ||
display: inline-block; | ||
background: url(http://csssprites.com/results/c179c90432ffd5f54d2897f11d3f78bd/result.png) 0 0 no-repeat; | ||
cursor: pointer; | ||
padding-left: 35px; | ||
font-family: "Microsoft YaHei"; | ||
line-height: 35px; | ||
} | ||
.icon:hover{ | ||
color: rgb(171,113,193); | ||
} | ||
.s1{ | ||
background-position: 2px 1px; | ||
} | ||
.s1:hover{ | ||
background-position: 1px -134px; | ||
} | ||
.s2{ | ||
background-position: 4px -42px; | ||
} | ||
.s2:hover{ | ||
background-position: -1px -183px; | ||
} | ||
.s3{ | ||
background-position: -1px -90px; | ||
} | ||
.s3:hover{ | ||
background-position: 3px -228px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="icon s1"> | ||
<span class="foeward">前进</span> | ||
</div> | ||
<div class="icon s2"> | ||
<span class="begin">开始</span> | ||
</div> | ||
<div class="icon s3"> | ||
<span class="stop">停止</span> | ||
</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,63 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="Edge,chrome=1" /> | ||
<title>用css border实现三角形</title> | ||
<style> | ||
.triangle{ | ||
width: 0px; | ||
height: 0px; | ||
margin: 20px; | ||
} | ||
.first{ | ||
border-top: 50px solid blue; | ||
border-right: 50px solid yellow; | ||
border-bottom: 50px solid green; | ||
border-left: 50px solid red; | ||
} | ||
.second{ | ||
border-top: 50px solid blue; | ||
border-right: 50px solid transparent; | ||
border-bottom: 50px solid transparent; | ||
border-left: 50px solid transparent; | ||
} | ||
.third{ | ||
border-top: 50px solid transparent; | ||
border-right: 50px solid transparent; | ||
border-bottom: 50px solid transparent; | ||
border-left: 50px solid red; | ||
} | ||
.fourth{ | ||
border-top: 50px solid transparent; | ||
border-right: 50px solid yellow; | ||
border-bottom: 50px solid transparent; | ||
border-left: 50px solid transparent; | ||
} | ||
.fifth{ | ||
border-top: 50px solid transparent; | ||
border-right: 50px solid transparent; | ||
border-bottom: 50px solid green; | ||
border-left: 50px solid transparent; | ||
} | ||
.sixth{ | ||
border-right: 70px solid transparent; | ||
border-bottom: 75px solid red; | ||
} | ||
.seventh{ | ||
border-left: 75px solid transparent; | ||
border-bottom: 75px solid green; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
<div class="first triangle"></div> | ||
<div class="second triangle"></div> | ||
<div class="third triangle"></div> | ||
<div class="fourth triangle"></div> | ||
<div class="fifth triangle"></div> | ||
<div class="sixth triangle"></div> | ||
<div class="seventh triangle"></div> | ||
</body> | ||
</html> |