2022-07-02 694
HTML translate 属性
实例
规定一些元素不被翻译:
<p translate="no">这个段落不能翻译。</p> <p>这个段落可以被翻译</p>
定义和用法
translate 属性规定元素内容是否要翻译。
测试:使用 Google 翻译工具,查看以下单词 "ice cream" 会变成什么:
这边我们使用 translate="no": ice cream.
这边我们使用 class="notranslate": ice cream.
提示: 使用 class="notranslate" 替代。
HTML 4.01 与 HTML5之间的差异
translate 属性是 HTML5 新增属性。
语法
<element translate="yes|no">
属性值
值 | 描述 |
yes | 规定元素内容需要翻译 |
no | 规定元素内容不需要翻译 |
原文链接:https://77isp.com/post/1708.html
=========================================
https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。
数据库技术 2022-03-28
网站技术 2022-11-26
网站技术 2023-01-07
网站技术 2022-11-17
Windows相关 2022-02-23
网站技术 2023-01-14
Windows相关 2022-02-16
Windows相关 2022-02-16
Linux相关 2022-02-27
数据库技术 2022-02-20
抠敌 2023年10月23日
嚼餐 2023年10月23日
男忌 2023年10月22日
瓮仆 2023年10月22日
簿偌 2023年10月22日
扫码二维码
获取最新动态