Property is ignored due to the display

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Luojun13Class/article/details/82288115

前言

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

{
    "resource": "/f:/phy/phy/daima/前端PC/src/app/workspace/physical-project/result-score/result-score.component.html",
    "owner": "_generated_diagnostic_collection_name_#1",
    "code": "propertyIgnoredDueToDisplay",
    "severity": 4,
    "message": "Property is ignored due to the display. With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect.",
    "source": "css",
    "startLineNumber": 417,
    "startColumn": 71,
    "endLineNumber": 417,
    "endColumn": 80
}
{
    "resource": "/f:/phy/phy/daima/前端PC/src/app/workspace/physical-project/result-score/result-score.component.html",
    "owner": "_generated_diagnostic_collection_name_#1",
    "code": "propertyIgnoredDueToDisplay",
    "severity": 4,
    "message": "Property is ignored due to the display. With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect.",
    "source": "css",
    "startLineNumber": 417,
    "startColumn": 81,
    "endLineNumber": 417,
    "endColumn": 92
}
{
    "resource": "/f:/phy/phy/daima/前端PC/src/app/workspace/physical-project/result-score/result-score.component.html",
    "owner": "_generated_diagnostic_collection_name_#1",
    "code": "propertyIgnoredDueToDisplay",
    "severity": 4,
    "message": "Property is ignored due to the display. With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect.",
    "source": "css",
    "startLineNumber": 448,
    "startColumn": 71,
    "endLineNumber": 448,
    "endColumn": 80
}
{
    "resource": "/f:/phy/phy/daima/前端PC/src/app/workspace/physical-project/result-score/result-score.component.html",
    "owner": "_generated_diagnostic_collection_name_#1",
    "code": "propertyIgnoredDueToDisplay",
    "severity": 4,
    "message": "Property is ignored due to the display. With 'display: inline', the width, height, margin-top, margin-bottom, and float properties have no effect.",
    "source": "css",
    "startLineNumber": 448,
    "startColumn": 81,
    "endLineNumber": 448,
    "endColumn": 92
}

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

end

谢谢您的阅读!

猜你喜欢

转载自blog.csdn.net/Luojun13Class/article/details/82288115