scenicList.wxss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* pages/scenicList/scenicList.wxss */
  2. .scenicNo{
  3. font-size: 32rpx;
  4. color: gray;
  5. padding: 20rpx;
  6. }
  7. .scenery{
  8. display: flex;
  9. padding: 0 20rpx;
  10. margin-top: 20rpx;
  11. height: 240rpx;
  12. }
  13. /* 景点介绍 */
  14. .sceneryContent{
  15. display: flex;
  16. flex-direction: column;
  17. width: 75%;
  18. margin-left: 20rpx;
  19. position: relative;
  20. }
  21. /* 景点图片 */
  22. .imgWrapper{
  23. width: 28%;
  24. display: flex;
  25. align-items: center;
  26. justify-content: center;
  27. }
  28. .sceneryImg{
  29. width: 100%;
  30. border-radius: 20rpx;
  31. }
  32. /* 景点名称和热度 */
  33. .titleAndRate{
  34. display: flex;
  35. }
  36. /* 景点名称 */
  37. .sceneryTitle{
  38. font-size: 36rpx;
  39. font-weight: bold;
  40. color: goldenrod;
  41. width: 54%;
  42. overflow: hidden;
  43. text-overflow: ellipsis;
  44. display: -webkit-box;
  45. -webkit-box-orient: vertical;
  46. -webkit-line-clamp: 1;
  47. }
  48. /* 景点热度 */
  49. .clickRate{
  50. position: absolute;
  51. right: 20rpx;
  52. font-size: 30rpx;
  53. }
  54. /* 景点内容介绍 */
  55. .sceneryIntro{
  56. position: absolute;
  57. bottom: 0rpx;
  58. overflow: hidden;
  59. margin-top: 30rpx;
  60. display: -webkit-box;
  61. /*设置对齐模式*/
  62. -webkit-box-orient: vertical;
  63. /*设置多行的行数*/
  64. -webkit-line-clamp: 4;
  65. }
  66. /* 分隔条 */
  67. .interval{
  68. width: 100%;
  69. height: 20rpx;
  70. margin: 20rpx 0;
  71. background-color: rgb(236, 234, 234);
  72. }