index.wxss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* 对面 */
  2. .opposite-side {
  3. display: flex;
  4. width: 100vw;
  5. padding-left: 30rpx;
  6. box-sizing: border-box;
  7. margin-bottom: 78rpx;
  8. }
  9. .opposite-side .userImg {
  10. width: 70rpx;
  11. height: 70rpx;
  12. border-radius: 50%;
  13. margin-right: 20rpx;
  14. }
  15. .opposite-side .content {
  16. position: relative;
  17. max-width: 457rpx;
  18. font-size: 28rpx;
  19. color: #000000;
  20. line-height: 40rpx;
  21. padding: 20rpx 26rpx 20rpx 30rpx;
  22. background-color: #F6F7F8;
  23. border-radius: 10rpx;
  24. word-break:break-all;
  25. }
  26. .msg-time {
  27. position: absolute;
  28. width: 240rpx;
  29. height: 34rpx;
  30. font-size: 24rpx;
  31. color: rgba(0, 0, 0, 0.39);
  32. line-height: 34rpx;
  33. bottom: -45rpx;
  34. right: 20rpx;
  35. }
  36. .opposite-side .msg-time {
  37. left: 20rpx;
  38. right: 0;
  39. }
  40. /* 自己 */
  41. .my-msg {
  42. display: flex;
  43. justify-content: flex-end;
  44. width: 100vw;
  45. padding-right: 30rpx;
  46. box-sizing: border-box;
  47. margin-bottom: 78rpx;
  48. }
  49. .my-msg .userImg {
  50. width: 70rpx;
  51. height: 70rpx;
  52. border-radius: 50%;
  53. margin-left: 20rpx;
  54. }
  55. .my-msg .content {
  56. position: relative;
  57. max-width: 457rpx;
  58. font-size: 28rpx;
  59. color: #000000;
  60. line-height: 40rpx;
  61. padding: 20rpx 26rpx 20rpx 30rpx;
  62. background-color: #F6F7F8;
  63. border-radius: 10rpx;
  64. word-break: break-all;
  65. }