index.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <style type="text/css">
  3. .input-label{
  4. margin: 0 auto !important;
  5. height: 250px !important;
  6. width: 250px !important;
  7. }
  8. </style>
  9. <html lang="zh">
  10. <head>
  11. <meta charset="UTF-8" />
  12. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  13. <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  14. <title>图片裁剪</title>
  15. <link rel="stylesheet" href="cropper.min.css" />
  16. <link rel="stylesheet" href="style.css" />
  17. <script src="cropper.min.js"></script>
  18. <script src="uni.webview.1.5.2.js"></script>
  19. </head>
  20. <body>
  21. <div class="file-upload-box">
  22. <input id="my-input" type="file" class="hidden-input" accept="image/png, image/jpeg, image/webp" />
  23. <label for="my-input" class="input-label">+</label>
  24. </div>
  25. <div class="img-crop-area"></div>
  26. <!-- <div class="previewAll">
  27. <div class="preview"></div>
  28. <div class="preview"></div>
  29. <div class="preview"></div>
  30. <div class="preview"></div>
  31. </div> -->
  32. <p>
  33. <button class="btn disabled" id="save">确定</button>
  34. <button class="btn disabled" id="spin" onclick='spin()'>旋转</button>
  35. </p>
  36. <script src="index.js"></script>
  37. </body>
  38. </html>