代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
html,
body {
width: 100%;
height: 100%;
}
#container {
width: 500px;
height: 300px;
border: 1px dashed #fff;
background-color: #eee;
margin: 20px;
border-radius: 10px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#container img {
width: 100px;
height: 100px;
}
#container span {
color: #999;
letter-spacing: 2px;
font-size: 12px;
}
.file-item {
width: 480px;
margin: 20px;
overflow: hidden;
padding: 10px;
border: 1px dashed #ccc;
border-radius: 10px;
}
.file-item img {
width: 20px;
height: 20px;
}
.file-item span {
margin-left: 10px;
}
.file-item span:hover {
cursor: pointer;
color: #0451AD;
}
.file-icon {
float: left;
}
.close {
float: right;
cursor: pointer;
}
#shade {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.3);
display: none;
}
.content {
width: 500px;
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-250px) translateY(-250px);
}
.shade-title {
width: 100%;
padding: 10px 20px;
background-color: #fff;
border-radius: 10px 10px 0 0;
overflow: hidden;
border-bottom: 1px solid #ccc;
}
.shade-title img {
width: 20px;
height: 20px;
float: right;
}
.shade-content {
width: 100%;
padding: 10px 20px;
background-color: #fff;
min-height: 300px;
text-align: center;
}
</style>
</head>
<body>
<div id="container">
<img src="./imgs/文件夹.png">
<span>*拖动需要上传的文本文档或图片至此区域</span>
</div>
<!-- 上传的文件列表 -->
<div id="file">
</div>
<!-- 遮罩层 -->
<div id="shade">
<div class="content">
<div class="shade-title">
<span id="file-name"></span>
<img onclick="closeShade()" src="./imgs/关闭.png">
</div>
<div class="shade-content"></div>
</div>
</div>
</body>
<script>
</script>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。