显示为背景图:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript" src="js/jquery-1.11.1.min.js" ></script>
<style>
.backgroundImgLoad{
width: 145px;
height: 60px;
border: 1px dashed #bbb;
margin: 0 auto;
display: block;
text-align: center;
font-size: 12px;
line-height: 60px;
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
</style>
</head>
<body>
<div >
<label for="backImg" class="backgroundImgLoad">本地上传</label>
<input type="file" id="backImg" style="display: none;" accept="image/*"/>
</div>
</body>
<script>
/*选择图片事件*/
$('#backImg').on('change',function(){
va