Email.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <html lang="zh-CN">
  2. <head>
  3. <meta charset="UTF-8" />
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>Document</title>
  7. </head>
  8. <body>
  9. <!-- <div class="title-box">
  10. <div class="title">www.saas.com</div>
  11. </div>
  12. -->
  13. <div class="content">
  14. <div class="content-box">
  15. <div class="top-box">
  16. <div class="top-img">
  17. <img src="https://kaiwu-saas.oss-cn-chengdu.aliyuncs.com/kll/uploads/20231208/96d6f2e7e1f705ab5e59c84a6dc009b21702019251237.png" alt=""/>
  18. </div>
  19. <div class="top-text">
  20. <div class="text-title">设备数值告警通知</div>
  21. <div class="p1">发件人:四川开物信息有限公司</div>
  22. </div>
  23. </div>
  24. <div class="content-c">
  25. <!-- <div class="content-c-title">正文</div>-->
  26. <div class="text-box-title">尊敬的开物云ECO用户</div>
  27. <div class="text-p">
  28. <!--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-->在北京时间的<b>{time}</b>,监控到了
  29. <b>{level}</b>告警,告警类型为<b>{type}。</b>
  30. </div>
  31. <div class="text-p">告警设备名称:<b>{name};</b></div>
  32. <div class="text-p">设备所属项目:<b>{project};</b></div>
  33. <div class="text-p">触发告警内容:<b>{element};</b></div>
  34. <div class="text-p">触发告警值:<b>{value};</b></div>
  35. <div class="text-p">
  36. 请在收到邮件后尽快处理,或者查阅操作手册文档,确认告警和通知相关信息,以避免制造成相关损失。
  37. </div>
  38. <div class="text-p2">
  39. <!-- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-->
  40. <b>{createTime}</b>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <style>
  46. body {
  47. margin: 0;
  48. box-sizing: border-box;
  49. }
  50. .title-box {
  51. width: 100%;
  52. height: 40px;
  53. background-color: #000;
  54. text-align: right;
  55. font-size: 16px;
  56. color: #fff;
  57. line-height: 40px;
  58. }
  59. .title {
  60. margin-right: 20px;
  61. }
  62. .content {
  63. width: 100%;
  64. background-color: #f2f2f2;
  65. border: 1px solid #a6a6a6;
  66. position: relative;
  67. }
  68. .content-box {
  69. margin: 20px auto;
  70. width: 500px;
  71. height: 600px;
  72. padding: 10px;
  73. border: 1px solid #797979;
  74. }
  75. .top-box {
  76. display: flex;
  77. width: 100%;
  78. }
  79. .top-img {
  80. width: 100px;
  81. height: 100px;
  82. }
  83. .top-img img {
  84. width: 100%;
  85. height: 100%;
  86. }
  87. .top-text {
  88. width: calc(100% - 100px);
  89. height: 100px;
  90. padding-left: 20px;
  91. }
  92. .top-text .text-title {
  93. font-size: 20px;
  94. font-weight: bold;
  95. text-align: center;
  96. margin-bottom: 20px;
  97. }
  98. .top-text .p1 {
  99. font-size: 16px;
  100. line-height: 30px;
  101. }
  102. .content-c {
  103. }
  104. .content-c-title {
  105. width: 100%;
  106. padding: 20px;
  107. border-bottom: 1px solid #e3e3e3;
  108. margin-bottom: 20px;
  109. }
  110. .text-box-title {
  111. margin-bottom: 20px;
  112. }
  113. .text-p {
  114. margin-left: 20px;
  115. text-indent: 2em;
  116. }
  117. .text-p2 {
  118. margin-left: 20px;
  119. text-indent: 20em;
  120. <!--color: red;-->
  121. }
  122. /*.text-p b{*/
  123. /* color: red;*/
  124. /*}*/
  125. </style>
  126. </body>
  127. </html>