Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.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
Css 在整个Durandal shell中使用带固定导航栏的引导粘性页脚模板_Css_Twitter Bootstrap_Durandal - Fatal编程技术网

Css 在整个Durandal shell中使用带固定导航栏的引导粘性页脚模板

Css 在整个Durandal shell中使用带固定导航栏的引导粘性页脚模板,css,twitter-bootstrap,durandal,Css,Twitter Bootstrap,Durandal,我想知道如何用id=“applicationHost”覆盖注入Durandal inside div中的shell视图样式。。。我正在尝试使用公共引导模板(),它可以独立工作,但一旦我在shell.html中使用它,“包装器”就会松开它的自动高度 这是我的shell.html <div> <div id="wrapper"> <!-- ko compose: {view: 'nav'} --> <!

我想知道如何用
id=“applicationHost”
覆盖注入Durandal inside div中的shell视图样式。。。我正在尝试使用公共引导模板(),它可以独立工作,但一旦我在shell.html中使用它,“包装器”就会松开它的自动高度

这是我的
shell.html

<div>
    <div id="wrapper">
            <!-- ko compose: {view: 'nav'} -->
            <!-- /ko--> 

        <div id="content" class="container-fluid">
            <!--ko compose: { 
                model: router.activeItem, //wiring the router
                afterCompose: router.afterCompose, //wiring the router
                transition:'entrance', //use the 'entrance' transition when switching views
                cacheViews:true //telling composition to keep views in the dom, and reuse them (only a good idea with singleton view models)
                }--><!--/ko-->                                 
        </div>
        <div id="push"></div>
    </div>
     <footer id="footer">
         <div class="container-fluid">
             <div class="row-fluid">
                 <div class="span6"><p class="muted">&copy; ABC Company Inc. 2013. All rights reserved.</p></div>
                 <div class="span6 "><p class="muted pull-right">v0.0.1-debug</p></div>     
             </div>
         </div>
     </footer>

 </div> 

©;ABC公司,2013年。版权所有

v0.0.1-debug

导航子视图只有标准的
,样式与引导示例页面上的样式相同


当我通过Firebug检查样式时,我可以清楚地看到wrapper div已经失去了它的完整高度……让我发疯了!:)

我修复了这个问题,在粘滞页脚工作所需的样式之后,在我的html主页上添加了以下样式

/*durandal fixes*/
#applicationHost, #applicationHost > div
{
    height: 100%; 
}
第一个选择器负责主html页面中的applicationHost div,第二个选择器由durandal插入(它有一个durandal包装类,因此如果需要,可以使选择器更具体)。由于shell.html文件中有一个额外的div,因此可能需要以下内容:

/*durandal fixes*/
#applicationHost, #applicationHost > div, #applicationHost > div > div
{
    height: 100%; 
}

我修复了这个问题,在使粘性页脚正常工作所需的样式之后,在我的主html页面中添加了以下样式

/*durandal fixes*/
#applicationHost, #applicationHost > div
{
    height: 100%; 
}
第一个选择器负责主html页面中的applicationHost div,第二个选择器由durandal插入(它有一个durandal包装类,因此如果需要,可以使选择器更具体)。由于shell.html文件中有一个额外的div,因此可能需要以下内容:

/*durandal fixes*/
#applicationHost, #applicationHost > div, #applicationHost > div > div
{
    height: 100%; 
}

我尝试了这个和其他几个变体,但是在不同的浏览器中垂直滚动条存在问题,当使用响应性布局时,垂直滚动条会中断。我尝试了这个和其他几个变体,但是在不同的浏览器中垂直滚动条存在问题,当使用响应性布局时,垂直滚动条会中断。