ui-nodataimage.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <style>
  2. .imagedata {
  3. width: 100%;
  4. height: 486px;
  5. position: absolute;
  6. /* top: 40%;
  7. left: 50%;
  8. transform: translate(-50%, -50%); */
  9. }
  10. .imagediv {
  11. font-size: 14px;
  12. width: 100%;
  13. height: 486px;
  14. text-align: center;
  15. border: 1px solid #eee;
  16. background: #fbfbfb;
  17. /* background: url(assets/images/cmdb/nodata.png) no-repeat center center; */
  18. }
  19. .imagediv p {
  20. height: 486px;
  21. line-height: 486px;
  22. /* 行高等于高度 */
  23. }
  24. /* .imagediv div img, */
  25. .imagediv p img {
  26. *margin-top: expression((400 - this.height)/2);
  27. vertical-align: middle;
  28. /* border: 1px solid #ccc; */
  29. }
  30. </style>
  31. <div class="imagedata row" ng-style="to.textpadding">
  32. <div class="imagediv">
  33. <p>
  34. <img ng-src="assets/images/cmdb/nodataimage.png" style="width:210px;height:181px" />
  35. <!-- <div class="font-weight-500 fontcolor-two margin-top:20px">暂无表单内容</div>
  36. <div class="fontcolor-one">请根据您的需求先填写上栏信息。</div> -->
  37. </p>
  38. </div>
  39. </div>