Skip to content

Commit a5e81f2

Browse files
committed
细节调整
Signed-off-by: Devin <[email protected]>
1 parent fe4695f commit a5e81f2

6 files changed

+11
-8
lines changed

Q.Uploader.image.all.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@
11141114
/*
11151115
* Q.Uploader.Image.js 图片上传管理器界面
11161116
1117-
* update:2016/04/22 15:37
1117+
* update:2016/04/22 16:07
11181118
*/
11191119
(function (window, undefined) {
11201120
"use strict";

demo/custom-image.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div>
1616
<a id="upload-target" class="x-button">添加图片并上传</a>
1717
</div>
18-
<div id="upload-view"></div>
18+
<div id="upload-image-view" class="clearfix"></div>
1919
<div id="log"></div>
2020
</div>
2121
</div>
@@ -33,7 +33,7 @@
3333

3434
var Uploader = Q.Uploader,
3535
formatSize = Q.formatSize,
36-
boxView = document.getElementById("upload-view");
36+
boxView = document.getElementById("upload-image-view");
3737

3838
var uploader = new Uploader({
3939
url: UPLOAD_URL,
@@ -60,7 +60,7 @@
6060
preview: function (data) {
6161
log(data.task.name + " : " + data.src);
6262
},
63-
//图片压缩后触发
63+
//图片压缩后触发,如果图片或浏览器不支持压缩,则不触发
6464
scale: function (data) {
6565
log(data.task.name + " : 已压缩!");
6666
}

demo/demo.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ li { list-style: none; }
66
img { border: none; }
77
a { text-decoration: none; }
88

9+
.clearfix:after { content: ''; clear: both; display: table; }
10+
.clearfix { zoom: 1; }
11+
912
.header { height: 60px; line-height: 60px; font-size: 16px; text-align: center; border-bottom: 1px solid #ccc; }
1013
.main { overflow: hidden; }
1114

@@ -23,7 +26,7 @@ a { text-decoration: none; }
2326
#upload-target { margin-bottom: 15px; }
2427
#upload-view { min-height: 200px; _height: 200px; background: #fff; border: 1px solid green; }
2528

26-
#log { margin: 10px 0; white-space: nowrap; }
29+
#log { margin: 10px 0; white-space: nowrap; clear: both; }
2730

2831
.scroll-view { overflow: auto; height: 300px; }
2932
.h100 { height: 100px; }

dist/Q.Uploader.image.all.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/Q.Uploader.Image.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/Q.Uploader.Image.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* Q.Uploader.Image.js 图片上传管理器界面
44
5-
* update:2016/04/22 15:37
5+
* update:2016/04/22 16:07
66
*/
77
(function (window, undefined) {
88
"use strict";

0 commit comments

Comments
 (0)