gpt4 book ai didi

eclipse - HTML Meta 的属性 - 标签在 eclipse 中抛出警告

转载 作者:太空狗 更新时间:2023-10-29 16:06:44 26 4
gpt4 key购买 nike

我的 HTML 页面中有一些用于 facebook 和 google 的元标记,但 eclipse 在“property”和“itemprop”上显示警告。我尝试了不同的文档类型,但它没有验证。有没有办法在不禁用 HTML 文档验证的情况下消除警告?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>

<head>

<!-- Facebook meta tags -->
<meta property="og:title" content="My Title" />
<meta property="og:description" content="My Description" />

<!-- Meta tags for google. -->
<meta itemprop="name" content="My Title"/>
<meta itemprop="description" content="My Description"/>

</head>

</html>

enter image description here

最佳答案

转到窗口->首选项->Web->HTML 文件->验证

选中在验证中忽略指定的属性名称并将“property, itemprop”添加到下面的文本字段。

关于eclipse - HTML Meta 的属性 - 标签在 eclipse 中抛出警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26192861/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com