如何在 HTML 中指定元素内容是否需要翻译?
htmlweb developmentfront end technology更新于 2026/1/17 15:40:17
translate 属性可用于设置元素内容是否需要翻译。
以下是属性 −
| 属性值 | 描述 |
|---|---|
| Yes | 内容需要翻译。 |
| No | 内容不应翻译。 |
如果您不想翻译某个特定单词,请将其添加到 translate 属性中 −
<p translate = "no">This won’t get translated.</p>
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

