position:在Windows Phone 7中固定 [英] position:fixed in 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屋!