2014-05-23 21 views
0

我有我正在使用从谷歌文档显示演示文稿的代码,我想知道是否有任何方法我隐藏在底部的栏,以便它不显示向上。隐藏谷歌文档栏播放演示文稿

<div style="width: 960; height: 540; 
    background-color:White;"> 
<div style="z-index: -2;"><iframe src="https://docs.google.com/presentation/d/1FYhFR3a49gvmyqozJbtNe3eP7FogKJRwGE9bN7tihSs/embed?start=true&amp;loop=false&amp;delayms=3000" frameborder="0" width="960" height="569"></iframe></div> 
</div> 
+0

'Z-index'只适用于'位置:'CSS规则! –

回答

1

集父DIV高度减去iframe高度和父DIV使用overflow: hidden;

试试这个代码

<div style="width: 960px; height: 540px;background-color:White; overflow: hidden;"> 
     <iframe src="https://docs.google.com/presentation/d/1FYhFR3a49gvmyqozJbtNe3eP7FogKJRwGE9bN7tihSs/embed?start=true&amp;loop=false&amp;delayms=3000" frameborder="0" width="960" height="569"></iframe> 
</div> 

DEMO

0

尝试加入RM =最小

<iframe src="https://docs.google.com/presentation/d/1FYhFR3a49gvmyqozJbtNe3eP7FogKJRwGE9bN7tihSs/embed?start=true&loop=false&delayms=3000&rm=minimal" frameborder="0" width="960" height="569"></iframe>