簡體   English   中英

如何從谷歌翻譯api中刪除或隱藏谷歌圖標?

[英]How to remove or hide the google icon from the google translate api?

我正在使用這行代碼:

    <div id="google_translate_element"></div>
<script>
   function googleTranslateElementInit() {
      var translator = new google.translate.TranslateElement({
      pageLanguage: 'en',
      autoDisplay: false,
      multilanguagePage: false,
      layout: google.translate.TranslateElement.InlineLayout.SIMPLE
   }, 'google_translate_element');
}
</script>
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

這是輸出,我想刪除圖標,怎么可能刪除它? 或隱藏

在此輸入圖像描述

習慣了

.goog-te-gadget-icon{
background:none !important;
}

現場演示

這比rohit的回答要好得多

.goog-te-gadget-icon{
  display:none;
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM