2011-09-03 26 views
1

我不知道爲什麼下面的iFrame有滾動條:如何去除頑固的iFrame滾動條

<iframe width='600' height='200' frameborder='0' scrolling='no' src='https://docs.google.com/spreadsheet/pub?hl=en_US&key=0Aliqp0kGPjWsdERacHFDVzNzb1N3RHREZzYwVGQ5OVE&output=html&widget=true&chrome=false'></iframe> 
+0

瀏覽器?版?似乎有滾動條[只在需要的地方](http://jsfiddle.net/BWwuP/show/)。 –

+0

或者你可能需要類似http://jsfiddle.net/8ku5F/2/show/ –

+0

@Joseph:謝謝你的回答,但是我必須使用如此多的腳本來刪除兩個滾動條嗎?任何直接的方法? – Mori

回答

0

語法明智的你使用正確的參數,scrolling="no",但我建議把它所有的雙引號之間。

+0

您可能是對的,但我不確定它是否有任何區別關於我之後的事情。 – Mori

1

這不是iframe,它的內部元素有一個卷軸(我的意思是電子表格),因爲你可以在底部的sheets tabs看到sheets tabs也是在iframe中,但之後沒有滾動條。

enter image description here

+0

有道理,但如何擺脫滾動條? – Mori

+1

減少列數或減小列的大小以適合您的框架 – Samich

1

如果你不需要看到工作表Sheet1Sheet2中標籤在底部,你可以修改iframesrc。如果您從網址中刪除&widget=true,則會停止滾動條的顯示。現場示例:http://jsfiddle.net/tw16/f2FaU/

<iframe width='600' height='200' frameborder='0' scrolling='no' src="https://docs.google.com/spreadsheet/pub?hl=en_US&key=0Aliqp0kGPjWsdERacHFDVzNzb1N3RHREZzYwVGQ5OVE&output=html&chrome=false"></iframe> 
+0

@RainLover:我非常確定這會解決您的問題,因此請不要忘記接受答案。 – tw16