Home  >  Q&A  >  body text

angular.js - ionic 弹窗样式

刚接触ionic,用了弹窗这个组件,我想自定义title样式或者删除title,但是我删除了title后,html相对应的元素还是被创建出来了,如果设置这个类为display:none,应该可以,但是治标不治本,有没有什么其他办法去掉title或者修改title的样式?

为情所困为情所困2687 days ago560

reply all(2)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-15 17:15:15

    template and templateUrl can customize the template. You can take out the original template and change it, so that the popup-head can be removed from the DOM

    It is not recommended to modify the original style directly, as it will affect the overall situation


    I looked at the documentation and found that this doesn’t work. template and templateUrl can only replace the popup-body template
    It’s a bit embarrassing

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-15 17:15:15

    I think it’s quite easy to control its “popup-**” style and make it disappear

    reply
    0
  • Cancelreply