<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
span{
width:302px;
height:31px;
border: 1px solid #e85356;
display: block;
text-align: center;
line-height: 31px;
background-color: #e4393c;
color: #fff;
font-size: 20px;
font-family: "微软雅黑";
cursor: pointer;
}
body{
/*background-repeat:
*/
background-color: red;
background-image: url(img/body_bg.jpg);
/*background-repeat: no-repeat;*/
}
i{
/*background-position:设置截取图片的其实位置
width height 设置截取图片的大小
background-repeat设置图片是否重复*/
width: 54px;
height: 51px;
display: inline-block;
background-position: -49px -98px;
background-image: url(img/index.jpg);
background-repeat: no-repeat;
}
</style>
</head>
<body>
<i></i>
<span>登录</span>
<a href="http://www.baidu.com">百度</a>
<style type="text/css">
a{
text-decoration: none;/*设置下划线*/
cursor: pointer;/*设置鼠标在点击该按钮的样式*/
color: #333;
font-family: "Microsoft YaHei";
}
/*设置鼠标浮上后的显示*/
a:hover{
text-decoration: underline;
color: #e60012
}
</style>
</body>
</html>