数据以下显示了Google MDL Page的标题和主体。我试图使用瀑布标题 - 标题在滚动时收缩。
使用下面的页面我得到的是标题不滚动,我在主体右侧有一个滚动条。
那么我如何设置它以使瀑布标题收缩?浏览器是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>
答案 0 :(得分:1)
在您<header class="mdl-layout__header mdl-layout__header--waterfall">
中,您已经错过mdl-layout__header--waterfall
,因为您已经写过mdl-layout--waterfall