演示代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="reset.css"/>
<!-- 以下引用阿里云图标库在线链接 -->
<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_2036439_0h96479wv2lb.css"/>
<style type="text/css">
.box{
width: 260px;
margin: 100px auto;
position: relative;
}
#qq{
width: 200px;height: 30px;
float: left;padding-left: 30px;
}
#btn{
width: 50px;height: 30px;float: left;
}
.icon-qq{
position: absolute;
top: 7px;left: 7px;
color: #ccc;
}
.icon-fangdajing{
position: absolute;
top: 7px;right: 25px;
}
</style>
</head>
<body>
<div class="box clearfix">
<input type="text" name="" id="qq" placeholder="请输入QQ号">
<input type="button" name="" id="btn" />
<span class="iconfont icon-qq"></span>
<span class="iconfont icon-fangdajing"></span>
</div>
</body>
</html>