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

