我试着获取内容,并使用position: fixed;
作为音乐播放器播放器栏以将其保留在页面底部。Iframe和Firefox/IE bug
演示:http://jsfiddle.net/ThinkingStiff/vhLeE/
HTML:
<iframe src="http://thinkingstiff.com"></iframe>
<div id="player">music player</div>
CSS:
body {
margin: 0;
height: 100%;
}
iframe {
border: 0;
display: block;
height: 100%;
width: 100%;
}
#player {
background-color: black;
bottom: 0;
color: white;
left: 0;
position: fixed;
height: 30px;
width: 100%;
}
可悲的是,这并不适用于IE或Firefix 9做工精良,它只是显示一个小内容高度窗口:http://cl.ly/0y0T2I1R042c3G002H3y
我该如何解决这个问题?
的作品就像一个魅力,干杯! – Hellnar 2012-01-07 15:10:09