我试图在prompt()框中显示“大于正常”的文本量 . 在Internet Explorer 11中调用javascript prompt()函数时,我的大部分文本都被隐藏了 . 它似乎只支持2行文本 . Chrome,Firefox和Opera似乎运行良好 . 这似乎只是一个IE问题 .
prompt("Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.");
我只能看到这篇文章“Lorem Ipsum只是印刷和排版行业的虚拟文本.Lorem Ipsum自16世纪以来一直是业界标准的虚拟文本” . 其余部分未显示 .
我担心我已经知道了答案,但是有没有理由为什么会这样呢?我更喜欢使用prompt()而不使用自定义模式 .