天天看點

google 網頁翻譯

<!DOCTYPE html >
<html lang = "en-US" >
<body>
<h1> my web page </h1>
<p> hello  there </p>
<p> my my god! this is my webpage </p>
<div id = "google_translate_element"></div> 
<script type="text/javascript">
	function googleTranslateElementinit(){
		new google.translate.TranslateElement({pageLanguage : 'en'}, 'google_translate_element');
	}
</script>
<script type="text/javascript" src = "https://translate.google.com/translate_a/element.js?cb=googleTranslateElementinit"></script>
<p> you can translate this page by selecting a language from the drop down </p>
</body>
</html>
           

繼續閱讀