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

javascript - 加载这JS为什么出不了图片

document.writeln("<p style='clear:both; margin-top:10px;'><img src=\'/images/ggleft.png\' width=\'210\' height=\'100\'></p>");

黄舟黄舟2723 Il y a quelques jours293

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

  • ringa_lee

    ringa_lee2017-04-11 09:09:32

    把最前面的/去掉

    <img src=\'images/ggleft.png\' width=\'210\' height=\'100\'>

    或者加上点

    <img src=\'./images/ggleft.png\' width=\'210\' height=\'100\'>

    répondre
    0
  • 阿神

    阿神2017-04-11 09:09:32

        document.writeln("<p style='clear:both; margin-top:10px;'><img src=\'images/ggleft.png\' width=\'210\' height=\'100\'></p>");

    你图片引用路径错了,单引号前面不要加/

    répondre
    0
  • Annulerrépondre