HotNews2.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <div class="title">
  3. <h4>
  4. 热点资讯
  5. <span>查看更多</span>
  6. </h4>
  7. </div>
  8. <!-- 列表 -->
  9. <ul class="rightList">
  10. <li v-for="item in 5">
  11. <img class="left"
  12. src="../../static/images/sgbhsihfgisdfaasda45632113_A_group_of_Chinese_farmers_are_trans_0e341355-f4d5-4796-b6cd-bdc87996f81b(1).png"
  13. alt="">
  14. <p class="left">高邮市周山镇开展渔业安全生产应急演练</p>
  15. </li>
  16. </ul>
  17. </template>
  18. <style lang="less" scoped>
  19. .title {
  20. width: 380px;
  21. height: 40px;
  22. line-height: 40px;
  23. border-top: 1px solid #139602;
  24. border-bottom: 1px solid #e7e7e7;
  25. background-color: #fbfbfb;
  26. >h4 {
  27. font-family: Microsoft YaHei, Microsoft YaHei;
  28. font-weight: 400;
  29. margin-left: 20px;
  30. font-size: 20px;
  31. color: #000000;
  32. text-align: left;
  33. font-style: normal;
  34. text-transform: none;
  35. >span {
  36. float: right;
  37. font-family: Microsoft YaHei, Microsoft YaHei;
  38. font-weight: 400;
  39. font-size: 14px;
  40. margin-right: 10px;
  41. color: #999999;
  42. text-align: left;
  43. font-style: normal;
  44. text-transform: none;
  45. }
  46. }
  47. }
  48. .rightList {
  49. height: 540px;
  50. padding-top: 20px;
  51. background-color: #fbfbfb;
  52. >li {
  53. height: 100px;
  54. margin-bottom: 10px;
  55. >img {
  56. width: 150px;
  57. height: 100px;
  58. border-radius: 4px;
  59. }
  60. >p {
  61. width: 219px;
  62. height: 100px;
  63. padding-left: 12px;
  64. font-family: PingFang SC, PingFang SC;
  65. font-weight: 400;
  66. font-size: 16px;
  67. color: #333333;
  68. line-height: 22px;
  69. text-align: left;
  70. font-style: normal;
  71. text-transform: none;
  72. }
  73. >p:hover {
  74. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  75. }
  76. }
  77. }
  78. </style>