Maison  >  Questions et réponses  >  le corps du texte

javascript - JS alert 弹出换行提示时如何居中文字?

内容如题

迷茫迷茫2749 Il y a quelques jours1047

répondre à tous(5)je répondrai

  • PHPz

    PHPz2017-04-10 12:49:08

    Alert弹窗不能自定义style!

    répondre
    0
  • ringa_lee

    ringa_lee2017-04-10 12:49:08

    你可以用空格或者tab来调整文字位置。

    \t这句话应\t\n
    \t居中显示\t
    

    répondre
    0
  • ringa_lee

    ringa_lee2017-04-10 12:49:08

    \t无效,chrome下 还是空格吧。

    répondre
    0
  • 黄舟

    黄舟2017-04-10 12:49:08

    好像这个没办法吧? 推荐一款插件artDialog

    répondre
    0
  • PHPz

    PHPz2017-04-10 12:49:08

    你可能需要的是这个:
    sweetalert

    répondre
    0
  • Annulerrépondre