前端H5实现js压缩图片预览上传
<%@page import="tms.dto.LoginProfile"%>
<%@page language="java" contentType="text/html; charset=utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="webTag" uri="/smartweb-tags"%>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<meta name="viewport"
content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<title>上传照片 </title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
list-style: none;
}
.id_img_wp {
width: 94%;
margin: 0 auto;
min-height: 30px;
}
.cancel {
width: 50px;
height: 50px;
color: #989898;
position: absolute;
}
.save_btn {
margin: 20px auto;
border: none;
height: 40px;
width: 95%;
background: #ce1b1b !important;
border-radius: 3px !important;
font-family: "微软雅黑";
font-size: 16px;
color: white;
line-height: 40px;
}
.more_btn {
height: 140px;
width: 100px;
background: green;
border-radius: 3px !important;
font-family: "微软雅黑";
font-size: 16px;
color: white;
}
.info_list {
width: 100%;
height: 50px;
border-bottom: