在移动网站中固定位置的按钮 [英] fixed positioned button in mobile website

查看:121
本文介绍了在移动网站中固定位置的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个移动网站,需要一个固定位置的按钮(用于快速链接以滚动到顶部),该按钮在滚动屏幕时会一直移动.移动浏览器不支持固定位置.谁能建议同样的方法.我正在使用Twitter Bootstrap.我已经在jquery移动框架中观察到了用于移动的固定位置的页眉和页脚,但是可以在twitter引导页面中使用它.

I am building a mobile website and need a fixed positioned button (for quick link to scroll to top) that should move across while scrolling the screen. fixed position is not supported by mobile browsers. Can anyone suggest the way around for the same. I am using twitter bootstrap. I have observed fixed position header and footers for mobile in jquery mobile framework but could use it in twitter bootstrap page.

谢谢.

推荐答案

您可以在网站上使用navbar-fixed-topnavbar-fixed-bottom导航栏,该导航栏将在移动设备上正常运行.请参阅导航栏下的可选显示版本"部分 http://twitter.github.com/bootstrap/components.html#navbar .

You can use a navbar-fixed-top or navbar-fixed-bottom navbar on your site and that will function properly on mobile devices. Refer to the Optional Display variations section under navbars http://twitter.github.com/bootstrap/components.html#navbar.

这篇关于在移动网站中固定位置的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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