2012-09-01 45 views
0

我们已经提取的响应菜单从这个网站响应菜单位置的CSS

http://mattkersley.com/demos/responsive_menu/

当我调整与屏幕尺寸的菜单中选择框中显示的默认页面的顶部。 我发现下面的代码会导致问题。但是如果我改变这个响应菜单不起作用。

var settings = { 
combine: true, //combine multiple menus into a single select 
groupPageText: 'Main', //optgroup's aren't selectable, make an option for it 
nested: true, //create optgroups by default 
prependTo: 'body', //insert at top of page by default 
switchWidth: 650, //width at which to switch to select, and back again 
topOptionText: 'Select a page' //default "unselected" state 
} 

如何更改菜单的位置?

回答

0

我已经通过改变“prependTo:'body'”中的属性来实现这一点。我们需要提供像nav,p,div这样的html标签来显示该位置的导航。