简体   繁体   English

jQuery移动页脚未调整为屏幕大小

[英]Jquery mobile footer doesn't resize to screen size

I've got a problem with the footer in my jquery mobile page. 我在jquery移动页面中的页脚有问题。 There's always some space between the edges of the screen and the edges of the footer. 屏幕的边缘和页脚的边缘之间总是有一定的距离。 In the other pages of my site, that space isn't there. 在我网站的其他页面上,该空间不存在。 So, anyone a idea what I can do about this? 那么,有人知道我对此可以做什么吗? There's an iframe in the middle of the footer, but on the other pages, it's there too. 页脚中间有一个iframe,但在其他页面上也有。 Here's the code of the footer, anyone an idea why this is happening? 这是页脚的代码,有人知道为什么会这样吗?

document.write (
<div data-role="footer"> 
<div align="center"><iframe width="320" height="50" frameborder="0" src="http://scoutline.3owl.com/test/rss/ads.html" scrolling="no"></iframe></div>
</div>

(in the real code there is an ' before every line and a '+ after every line, but stack overflow won't show my code when it's there.) (在真实的代码中,每行之前有一个',而每行之后有一个'+,但是堆栈溢出不会显示我的代码。)

Thanks in advance, Jan Thiemen 在此先感谢Jan Thiemen

I went to http://scoutline.3owl.com/test/rss/ads.html and from there found the source code for your page. 我转到http://scoutline.3owl.com/test/rss/ads.html ,从那里找到了您页面的源代码。

You're currently placing your footer within the content, that is why it's constrained to 90% of the width. 您当前正在将页脚放置在内容中,这就是为什么将页脚限制为宽度的90%的原因。 Add another in front of it and you're good to go. 在其前面添加另一个,您就可以开始了。 (Yes, I do mean add since I can't find the closing div of the data-role=page). (是的,我的意思是添加,因为找不到data-role = page的结束div)。

I made a jsfiddle http://jsfiddle.net/YeBGS/ 我做了一个jsfiddle http://jsfiddle.net/YeBGS/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM