交作业:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>55-超链接动画演示</title>
<style type="text/css">
body{
margin-top:333px;
margin-left:333px;
}
a{
color:#fff;
font-size:33px;
text-decoration:none;
font-family:STFangsong;
#transition:all 2s ease;/*ease-in-out先加后减,匀速:linear,逐渐慢下来ease*/
transition:color .6s,background 1.2s ease-in-out;/*还可以分别设置color和background时间,注意要用“,”分开*/
display:block;
width:600px;
box-sizing: border-box;
padding-left:160px;
height:66px;
border:1px solid #ff0088;
line-height:66px;
border-radius:6px;
position:relative;
}
/*外部导入,一个字体*/
@font-face {
font-family: 'icon-font';
src: url('fonts/icons.eot'), url('fonts/icons.otf'), url('fonts/icons.ttf'), url('fonts/icons.woff');
}
a:hover{
color:#00aa00;
background:#555555;
padding-left:20px;
background:rgba(0,0,0,.6);
}
/*使用after伪元素创建一个图标。*/
a::after{
font-family:'icon-font';
content: '\e607';
position: absolute;
left:15%;
transition: all .8s;
}
a:hover::after{
left: 85%;
}
</style>
</head>
<body>
<a href="http://bbs.fishc.com/forum-337-1.html">小天才养殖场,快来闯一闯</a>
</body>
</html>
fwwgehrfjkyl,yikyk
{:7_146:}
好好看好好学
{:5_109:}
RE: 0 0 5 6 - 按钮‘最强’动画特效 2.0 [修改]
看看{:7_112:}
好骚啊 哈哈 赞
这章有点懵
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>超链接动画演示</title>
<style type="text/css">
body {
text-align: center;
margin-top:333px;
}
a {
margin: 20px auto;
font-size: 55px;
text-decoration: none;
color:white;
display: block;
padding-bottom: 10px;
/* padding-left: 220px; */
width: 900px;
height: 70px;
border: 1px solid black;
box-sizing: border-box;
position: relative;
border-radius:20px;
transition: color 2s,
background 1.2s ease-in-out;
/* 淡入淡出 */
}
a:hover {
color:black;
background: #34495e;
/* padding-left: 20px; */
background: rgba(0,0,0,.6);
}
a::after {
font-family: 'icon-font';
content: '>';
position: absolute;
right: 88%;
/* 符号移动范围 */
transition: all 1s;
}
a:hover::after {
right: 6%;
/* 符号最后停止位置 */
}
</style>
</head>
<body>
<a href="http://bbs.fishc.com/forum-337-1.html" target="_thank">小天才养殖场,快来闯一闯</a>
<hr>
</body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>超链接动画演示</title>
<style type="text/css">
body{
margin-top: 333px;
margin-left: 40%;
text-align: center;
}
a{
color: #fff;
font-size: 33px;
text-decoration: none;
font-family: STFangsong;
transition: color .6s,background 1.9s ease-in-out;
display: block;
width:600px;
height: 66px;
border: 1px solid #FF0088;
line-height: 66px;
border-radius: 6px;
box-sizing: border-box;
padding-left: 160px;
position: relative;
}
@font-face {
font-family: 'icon-font';
src: url('fonts/icons.ttf'), url('fonts/icons.eot'), url('fonts/icons.woff'), url('fonts/icons.svg');
}
a::after{
font-family:'icon-font';
content: '\e607';
position: absolute;
right: 85%;
transition: all .8s;
}
a:hover{
color:#00AA00;
background:#555555;
padding-left: 20px;
background: rgba(0,0,0,.6);
}
a:hover::after{
right: 6%;
}
</style>
</head>
<body>
<a href="http://bbs.fishc.com/forum-337-1.html">小天才养殖场,快来闯一闯</a>
</body>
</html>
{:5_109:}
不二牛{:5_91:}
爱恨原则吗
{:10_277:}
111
学习
123
{:5_90:}
我想看看