Skip to content

Commit

Permalink
add files of task9
Browse files Browse the repository at this point in the history
  • Loading branch information
cttin committed Jul 4, 2016
1 parent 5571d5b commit b033fb8
Show file tree
Hide file tree
Showing 3 changed files with 172 additions and 0 deletions.
53 changes: 53 additions & 0 deletions 曹婷婷/L9/task9-1.html
@@ -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>
56 changes: 56 additions & 0 deletions 曹婷婷/L9/task9-2.html
@@ -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>
63 changes: 63 additions & 0 deletions 曹婷婷/L9/task9-3.html
@@ -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>

0 comments on commit b033fb8

Please sign in to comment.