内联更改Google翻译字体大小 [英] Change Google translate font size inline

查看:217
本文介绍了内联更改Google翻译字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个带滑块和字体大小为58px的网页;滑块上的图像。我在我的网站上使用谷歌翻译来改变语言。当我在移动设备上查看我的网站时,由于谷歌翻译,滑块上的文字缩小为字体大小:9px。



我尝试了什么:



我尝试在google翻译中为字体创建内联css但是没有用。有人可以帮我解决这个问题吗?

I have created a webpage with sliders and font-size of 58px; over the slider images.I am using google translate in my website to change the languages. When I view my website in mobile , due to the google translate the text over the slider is reducing to font-size:9px.

What I have tried:

I tried creating inline css for the fonts in google translate but is not working.Can somebody help me with this issue?

推荐答案

这个问题毫无意义。谷歌翻译在谷歌翻译网站有自己的风格,你无法改变;和谷歌翻译你可能从这个网站获得的数据不能改变你在你的网站上定义的样式。



没有字体大小减少由于谷歌翻译。 Google翻译无法访问您的网站。是你缩小了尺寸或其他任何东西。怎么样?您没有提供任何信息。也许您甚至没有在您的网站上显示数据但重定向到Google的数据,我不知道。问题很简单:1)向Google Translate发送HTTP请求(请注意,所有数据都通过URL传递),2)从HTTP响应中抓取数据; 3)以您想要的方式在您的网站上显示它; 4)将Google的所有工作归功于Google。



-SA
The question makes no sense at all. Google translate at Google translate site has it's own styles which you cannot change; and Google translate data you probably get from this site cannot change the styles you define on your site.

No font size is reducing "due to Google Translate". Google Translate does not have access to your site. It's you who reduced the size, or anything else. How? You did not provide any information. Maybe you don't even show data on your site but redirect to Google's, I have no idea. The problem is quite simple: 1) send HTTP request to Google Translate (note that all the data is simply passed through the URL), 2) scrape data from HTTP response; 3) show it on your site the way you want; 4) credit Google for all the work.

—SA


这篇关于内联更改Google翻译字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆