我们使用的材料设计Lite在我们的科多瓦应用程序。
由于我不知道在科多瓦使用with的MDL对话框的状态,所以我们决定使用莫达。
当我打开模型时,MDL stlyes似乎可以工作,但是输入字段不会浮动标签。我在一个普通的页面上试过这个,它看起来很好。
我已经附加了用于显示模态和模态HTML的代码。
注意,模态定位是一个单独的问题。

$('#add-card').modaal({
overlay_opacity:0.5,
overlay_close:false,
hide_close:true,
after_open: function(){
componentHandler.upgradeDom();
}
});
<div id="dialog-add-card" class="dialog">
<h4>Add a New Card</h4>
<p class="colour-text-light">Please enter your email address</p>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" id="input-settings-add-card">
<label class="mdl-textfield__label" for="input-settings-add-card">Email</label>
</div>
<div class="settings-button">
<button id="button-dialog-add-card" class="mdl-button mdl-js-button mdl-button--raised colour-bg-action colour-text-white">Add</button>
</div>
<br />
<div class="settings-button-small">
<button id="button-dialog-add-card-cancel" class="mdl-button mdl-js-button colour-text-primary">Cancel</button>
</div>
</div>发布于 2016-05-10 06:33:53
我决定使用多边形填充,一切似乎都正常。
改变它并不是太糟糕,但它本来会更容易从得到去使用的多填。
https://stackoverflow.com/questions/37042356
复制相似问题