数据下面显示了Google MDL页面的标题和主体。我正在尝试使用瀑布式标题-在滚动时标题会缩小。
在页面下面,我得到的是标题不滚动,并且在主体右侧显示滚动条。
那么我将如何设置它以使Waterfall标头缩小?浏览器是IE10)
<div class="mdl-layout mdl-js-layout">
<header class="mdl-layout__header mdl-layout--waterfall">
<div class="mdl-layout__header-row">
<div class="mdl-layout__title">
Document Management
</div>
<div class="mdl-layout-spacer"></div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable
mdl-textfield--floating-label mdl-textfield--align-right" id="searchBox">
<label class="mdl-button mdl-js-button mdl-button--icon" for="srchText">
<i class="material-icons">search</i>
</label>
<div class="mdl-textfield__expandable-holder">
<input class="mdl-textfield__input" type="text" name="sample" id="srchText" />
</div>
</div>
</div>
<div class="mdl-layout__header-row">
</div>
</header>
<main class="mdl-layout__content">
<div class="mdl-grid search-result-width page-content" id="contentGrid">
<!--Dummy-->
<div class="mdl-card mdl-shadow--2dp card-width">
<div>
<div class="mdl-card__title">
<h2 class="mdl-card__title-text">
Name
</h2>
<div class="mdl-layout-spacer"></div>
<i class="material-icons">person</i>
</div>
<div class="mdl-card__supporting-text">
<p>
An Address </p>
</div>
<div class="mdl-card__actions mdl-card--border">
<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" href="patientDocumentList.html?Id=08029aa4800b0ff6">DETAILS</a>
</div>
</div>
</div>
</div>
</main>
最佳答案
在您的<header class="mdl-layout__header mdl-layout__header--waterfall">
中,您在写mdl-layout__header--waterfall
时错过了mdl-layout--waterfall
关于javascript - Google MDL Waterfall header 在正文右侧的滚动条和滚动条上未缩小,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35750764/