Property is ignored due to the display

比眉伴天荒 2021-09-27 09:20 363阅读 0赞

前言

今天在打开一个新程序的时候,出现了四个错误:Property is ignored due to the display.With 'display: inline', the width,height,margin-top,margin-bottom,and float properties have no effect如下图所示:
这里写图片描述
图片的展示的每一条警告中的详细内容如下:

  1. {
  2. "resource": "/f:/phy/phy/daima/前端PC/src/app/workspace/physical-project/result-score/result-score.component.html",
  3. "owner": "_generated_diagnostic_collection_name_#1",
  4. "code": "propertyIgnoredDueToDisplay",
  5. "severity": 4,
  6. "message": "Property is ignored due to the display. With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect.",
  7. "source": "css",
  8. "startLineNumber": 417,
  9. "startColumn": 71,
  10. "endLineNumber": 417,
  11. "endColumn": 80 }
  12. {
  13. "resource": "/f:/phy/phy/daima/前端PC/src/app/workspace/physical-project/result-score/result-score.component.html",
  14. "owner": "_generated_diagnostic_collection_name_#1",
  15. "code": "propertyIgnoredDueToDisplay",
  16. "severity": 4,
  17. "message": "Property is ignored due to the display. With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect.",
  18. "source": "css",
  19. "startLineNumber": 417,
  20. "startColumn": 81,
  21. "endLineNumber": 417,
  22. "endColumn": 92 }
  23. {
  24. "resource": "/f:/phy/phy/daima/前端PC/src/app/workspace/physical-project/result-score/result-score.component.html",
  25. "owner": "_generated_diagnostic_collection_name_#1",
  26. "code": "propertyIgnoredDueToDisplay",
  27. "severity": 4,
  28. "message": "Property is ignored due to the display. With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect.",
  29. "source": "css",
  30. "startLineNumber": 448,
  31. "startColumn": 71,
  32. "endLineNumber": 448,
  33. "endColumn": 80 }
  34. {
  35. "resource": "/f:/phy/phy/daima/前端PC/src/app/workspace/physical-project/result-score/result-score.component.html",
  36. "owner": "_generated_diagnostic_collection_name_#1",
  37. "code": "propertyIgnoredDueToDisplay",
  38. "severity": 4,
  39. "message": "Property is ignored due to the display. With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect.",
  40. "source": "css",
  41. "startLineNumber": 448,
  42. "startColumn": 81,
  43. "endLineNumber": 448,
  44. "endColumn": 92 }

这个错误表示:属性由于显示而被忽略。对于“展示:内联的”,宽度、高度、边距顶部、边距底部和浮动属性没有影响。

end

谢谢您的阅读!

发表评论

表情:
评论列表 (有 0 条评论,363人围观)

还没有评论,来说两句吧...

相关阅读