0
正在使用angular2 This modal和我想的模式弹出位置向左这是香港专业教育学院试图Angular2模式弹出定位留下
<modal #categoriesmodal [cssClass]="modalchecklist">
<modal-header [show-close]="true">
<h4 class="modal-title">I'm a modal!</h4>
</modal-header>
<modal-body>
Hello World!
</modal-body>
<modal-footer [show-default-buttons]="true"></modal-footer>
</modal>
在CSS类
.modalchecklist{
position:absolute;
top:0;
left:0
}
我曾尝试在css类中添加//background color:red
,但这样做会失败,并将css添加到背景文档中,而不是模型
我要去哪里错了CSS类
伊夫还检查Chrome开发人员工具,但他们太不解决问题。
可能是自己做错了什么
您是否尝试了没有括号?像这样:'
它仍然失败,我尝试用类而不是cssClass,但现在模态位于左角而不是右角 –