4

If Google Translate is set to automatic translation in the chrome browser, sometimes it will be very annoying, so you can choose to disable Google Translate. The specific method is as follows

1. Add the attribute translate="no" to the html tag to prohibit translation across the site

<html translate="no">

2. Add it to the head of the html file (pro test, it doesn't seem to work well)

<meta name="google" content="notranslate">

3. Add class="notranslate" to the elements that do not want to be translated, which can be various elements such as html, div, etc. (recommended, available for pro-test)

<div class="notranslate"></div>

杭州蘇小小
178 声望12 粉丝

我是一名 WEB前端 开发者不断在前端这条路上努力拼搏着。我喜欢代码的逻辑有序性,每一行代码都有其不同的作用,所有的代码加起来就可以让用户能愉快的体验我的产品。我喜欢研究,遇到难题我不退缩,我相信我可以...


下一篇 »
tsconfig.json