Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jQuery Mobile-页面内容隐藏在永久标题下_Javascript_Html_Css_Jquery Mobile - Fatal编程技术网

Javascript jQuery Mobile-页面内容隐藏在永久标题下

Javascript jQuery Mobile-页面内容隐藏在永久标题下,javascript,html,css,jquery-mobile,Javascript,Html,Css,Jquery Mobile,代码和演示可以在这里找到: 加载主页后,一切正常。但是,当我使用页脚导航切换另一个页面时,新页面内容将位于页眉下。收割台高度的计算似乎不正确 为什么会发生这种情况?我如何才能阻止它发生?这是一个已知的问题。到目前为止,我已经开发了一个解决方案和另一个在中发现的方案 以下是我们在Stoppress WPSE聊天的总结结果 // From Bug tracker #4219 @TodParker $( "[data-position='fixed']" ).fixedtoolbar( 'update

代码和演示可以在这里找到:

加载主页后,一切正常。但是,当我使用页脚导航切换另一个页面时,新页面内容将位于页眉下。收割台高度的计算似乎不正确


为什么会发生这种情况?我如何才能阻止它发生?

这是一个已知的问题。到目前为止,我已经开发了一个解决方案和另一个在中发现的方案

以下是我们在Stoppress WPSE聊天的总结结果

// From Bug tracker #4219 @TodParker
$( "[data-position='fixed']" ).fixedtoolbar( 'updatePagePadding' );
// My own solution
$( "[data-position='fixed']" ).trigger( 'updatelayout' );

// Summed up: (Note) `pageload` and `.bind()` and equals won't work here.
$( document ).on( "pageshow", function(){
    $( "[data-position='fixed']" ).trigger( 'updatelayout' );
} );

如果您也遇到过此问题/看到此行为,请介入并

这是一个已知的问题。到目前为止,我已经开发了一个解决方案和另一个在中发现的方案

以下是我们在Stoppress WPSE聊天的总结结果

// From Bug tracker #4219 @TodParker
$( "[data-position='fixed']" ).fixedtoolbar( 'updatePagePadding' );
// My own solution
$( "[data-position='fixed']" ).trigger( 'updatelayout' );

// Summed up: (Note) `pageload` and `.bind()` and equals won't work here.
$( document ).on( "pageshow", function(){
    $( "[data-position='fixed']" ).trigger( 'updatelayout' );
} );
如果您也遇到过此问题/看到此行为,请介入并