position:在Windows Phone 7中固定 [英] position:fixed in Windows Phone 7

查看:147
本文介绍了position:在Windows Phone 7中固定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个PhoneGap Windows Phone 7应用程序。为了模仿一个应用程序栏,应该总是在横向显示在屏幕的左侧,我想把一个< div> 用CSS作为 position:fixed 。这不工作,但是,因为在WP7上的IE似乎不支持它。



有没有人知道如何显示这样一个应用程序栏,而没有 position:fixed 可用? p>

提前感谢

解决方案

它似乎不可能创建一个固定的元素,并在每个滚动看起来更糟的位置元素(尝试在你的手机上的jquery移动在线示例,他们这样做)。



我通过使用div容器为我的非固定内容与style =overflow:scroll和固定大小解决的问题。这对我有用。但是在这个容器中滚动看起来不像本地滚动。



希望有助于


I'm trying to create a PhoneGap Windows Phone 7 application. In order to imitate an Application bar that should always be visible at the left side of the screen in landscape orientation, I wanted to place a <div> with CSS as position:fixed. This does not work, however, because the IE on WP7 seems not to support it.

Does anyone have an idea how I can display such an Application bar without having position:fixed available?

Thanks in advance

解决方案

I was also hanging on this problem. It really seems not to be possible to create a fixed element and to position elements after every scroll looks even worse (try the jquery mobile online examples on your phone they do it this way).

I "solved" the problem by using a div container for my non fixed content with style="overflow: scroll" and fixed size. This worked for me. But scrolling in this container doesn't look like native scrolling.

Hope that helps

这篇关于position:在Windows Phone 7中固定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆