<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>点击头像上传图片</title>
<style>
*{
margin:0;
padding: 0;
}
div,#avarimgs,#xdaTanFileImg{
width: 100px;
height: 100px;
}
div{
margin:50px auto;
position: relative;
}
#xdaTanFileImg{
position: absolute;
top: 0;
left: 0;
opacity: 0;
}
</style>
</head>
<body>
<div>
<input type="file" name="pclogo" id="xdaTanFileImg" onchange="xmTanUploadImg(this)" accept="image/*">
<img src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3787285033,4172246344&fm=26&gp=0.jpg" class="img-circle img-thumb