ItemPic.wxss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .item-pic {
  2. width: 200rpx;
  3. height: 200rpx;
  4. position: relative;
  5. box-sizing: border-box;
  6. border-radius: 6px;
  7. border: 2rpx solid rgba(232, 232, 232, 1);
  8. margin-right: 20rpx;
  9. margin-bottom: 30rpx;
  10. justify-content: center;
  11. align-items: center;
  12. float: left;
  13. }
  14. .show-img {
  15. width: 200rpx;
  16. height: 200rpx;
  17. border-radius: 6px;
  18. }
  19. .loading {
  20. position: absolute;
  21. background: rgba(0, 0, 0, 0.5);
  22. left: 0;
  23. top: 0;
  24. width: 100%;
  25. height: 100%;
  26. border: 2rpx solid rgba(0, 0, 0, 0.5);
  27. border-radius: 6px;
  28. }
  29. .loading-img {
  30. animation: rotation 2s linear infinite;
  31. position: absolute;
  32. width: 50rpx;
  33. height: 50rpx;
  34. left: 75rpx;
  35. top: 75rpx;
  36. }
  37. @keyframes rotation {
  38. from {
  39. -webkit-transform: rotate(0deg);
  40. }
  41. to {
  42. -webkit-transform: rotate(360deg);
  43. }
  44. }
  45. .loading .text {
  46. color: #fff;
  47. font-size: 20rpx;
  48. text-align: center;
  49. line-height: 150rpx;
  50. display: block;
  51. margin: 0 auto;
  52. }
  53. /* .loading image {
  54. width: 150rpx;
  55. height: 150rpx;
  56. } */
  57. .close {
  58. position: absolute;
  59. right: -15rpx;
  60. top: -15rpx;
  61. background: #fff;
  62. height: 40rpx;
  63. width: 40rpx;
  64. border-radius: 100%;
  65. }
  66. .close .image {
  67. height: 40rpx;
  68. width: 40rpx;
  69. display: block;
  70. }