0
をに設定したときに、私はのモーダルをtop
に設定しようとしています。 私は$('#singlePost').css("top", "1%");
を試しましたが、機能しません。 githubでこれを試してみてください github どのような解決方法ですか?この問題にもかかわらずどのようにモーダルモーダルを設定するには?
<div id="singlePost" class="modal" >
<div class="modal-content">
<div class="row">
<div class="col m9 s12">
<img class="input-field" ng-src="img/cover.jpeg" alt="" >
</div>
</div>
</div>
CSS
#singlePost
{
background-color: #f7f8fa;
width:90%;
height:90% !important;
display: table !important;
}
スクリプト
$('#singlePost').modal('open', {
dismissible: true,
inDuration: 200,
outDuration: 100
});