我试图在提示符()框中显示“比正常情况”的文本量更大的文本。当在Internet Explorer 11中调用javascript prompt()函数时,我的大部分文本都被隐藏了。它似乎只支持两行文字。 Chrome,Firefox和Opera似乎工作正常。这似乎只是一个IE问题。JavaScript提示()文本部分隐藏在Internet Explorer 11中
下面是一个说明该问题的小提琴:JSFiddle Example
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存有是印刷和排版行业的简单虚拟文本Lorem存有一直是业界的自16世纪以来的标准虚拟文本,当时为“。其余不显示。
恐怕我已经知道了答案,但是有什么原因会导致这种情况发生?我宁愿使用prompt()而不使用自定义模式。
的最简单的解决方案是不使用提示框。 – 2014-11-04 22:13:24
这个浏览器甚至喝了一杯咖啡..这是不真实的..在一个理想的世界,我抗议支持浏览器本身,而不是提示的事情。 – 2014-11-04 22:28:53
你应该使用另一种类似JQuery对话框。 – Donal 2014-11-04 22:31:00