如何在HTML中指定元素的内容是否应该被翻译?

ID:10057 / 打印

如何在html中指定元素的内容是否应该被翻译?

The translate attribute is useful to set that the content of an element is to be translated or not.

The following are the attributes −

AttributeValue

Description

Yes

The content should be translated.

立即学习“前端免费学习笔记(深入)”;

No

The content should not be translated.

If you did not want a specific word to be translated, then add it to the translate attribute −

<p translate = "no">This won&rsquo;t get translated.</p>
上一篇: 如何在HTML中的fieldset中包含一个标题?
下一篇: 如何在HTML5中绘制SVG标志?

作者:admin @ 24资源网   2024-09-27

本站所有软件、源码、文章均有网友提供,如有侵权联系308410122@qq.com

与本文相关文章

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。