开发者

Hide the top frame on google translate

开发者 https://www.devze.com 2023-01-05 22:43 出处:网络
<frameset rows=\"36, 95%\" border=\"0\"> <frame src=\"alfa.html\" noresize scrolling=\"no\">

<frameset rows="36, 95%" border="0"> <frame src="alfa.html" noresize scrolling="no"> <frame src="http://tr开发者_如何学编程anslate.google.com/translate?js=y&prev=_t&hl=en&ie=UTF-8&layout=1&eotf=0&u=http://www.apple.com/&sl=en&tl=zh-CN"> </frameset>

How to hide the google top frame? JS? Jquery? And how...

Thanks!


Use iframes with position:absolute and negative margin-top to hide the google top frame. Be carefull with the z-index property.


Know what, this Cookie Monitor idea helped for something weird. I was trying to use Google Translate (http://translate.google.com/translate_tools?hl=en) on a mobile webapp and everytime the language is changed, it kept inserting a bar at the top as the first child of document.body . I am now tracking the 'googtrans' cookie and doing this :

listenCookieChange('googtrans', function() {
    $(document.body).css('top','0px');
});
0

精彩评论

暂无评论...
验证码 换一张
取 消