0
我想從我的Facebook應用程序中刪除滾動條。 我試過js解決方案,用以下js代碼和一些css(overflow:hidden)在html和body標籤上。如何讓應用程序的iframe包裝滾動=「no」
<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({
appId: 'My_App_Id',
status: true,
cookie: true,
xfbml: true
});
FB.Canvas.setAutoResize(7);
};
(function() {
var e = document.createElement('script');
e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/it_IT/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
如果我看到其他的應用程序,我發現自己已經滾動的iframe包裝設置爲「無」的財產,這是神奇的所有瀏覽器。
我無法在任何模式下將滾動值設置爲「no」。
我該怎麼辦?
感謝您的幫助! 安東尼
這正是我一直在尋找。謝謝 – Antonio