第一次提交测试 2025.07.20 skimrme
This commit is contained in:
26
public/message/static/php/google_translate.php
Executable file
26
public/message/static/php/google_translate.php
Executable file
@@ -0,0 +1,26 @@
|
||||
<!-- 谷歌翻译 -->
|
||||
|
||||
<div id="google_translate_element"></div>
|
||||
<!-- 翻译选项 -->
|
||||
|
||||
<!-- js 部分 -->
|
||||
<script type="text/javascript">
|
||||
function googleTranslateElementInit() {
|
||||
new google.translate.TranslateElement({pageLanguage: 'zh-CN'}, 'google_translate_element');
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
|
||||
<!-- js 部分 -->
|
||||
|
||||
<style>
|
||||
#google_translate_element
|
||||
{
|
||||
display: flex;
|
||||
position: fixed;
|
||||
/* 页面边距 上、右、下、左 */
|
||||
margin: -7.6px 0px 0px 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- 谷歌翻译 -->
|
||||
Reference in New Issue
Block a user