0

我在我的骨干项目中使用引导程序。我只(目前)使用“经典”响应式导航栏,当您缩小浏览器或使用一部手机进入时,您会看到一个按钮,这会扩展响应式菜单,如果您有大屏幕,它会看到您的典型菜单。

http://twitter.github.com/bootstrap/components.html(您可以在顶部菜单中看到文本,但如果您缩小浏览器屏幕,您会看到底部)

我在移动/低分辨率/等的打开/关闭时刻遇到问题。如果我在看到缩小版本时按下打开菜单,有时它不会打开菜单,或者有时它不会关闭菜单。有时关闭菜单并重新打开....

我不搜索具体的响应,但是,我需要一些指导来找到 CSS 问题。¿ 当我在减少/响应菜单中按下导航栏底部时,我在哪里看到发生了什么?我不知道:(

4

1 回答 1

0

I couldn't tell you for sure without looking at code but if you are not properly removing views from the DOM you could have multiple bindings to the click on the navbar. So the view may not be showing but events are still being fired. For example you could be showing the navbar and use it to navigate the page and somewhere along the line the navbar is recreated binding yet another event to it even though only one is showing. You need to make sure to unbind all events for your views. A good article to solve this is:

Backbone View Managment

Just a thought but can't really know without looking at code.

于 2013-04-02T22:02:04.790 回答