【发布时间】:2016-04-18 15:27:44
【问题描述】:
由于某种原因,我正在尝试使用 onclick="window.open" 打开一个新窗口,滚动条和可调整大小在 IE11 中不起作用,它在 Chrome 中可以正常工作,但可以正常工作。
<div class="editor-field editorholder" style="height: auto;">
<a href="@Url.Action("QuickView", "Home", new { id = @Model.UniqueKey })" class="btn-mvc" onclick="window.open(this.href,'targetWindow','toolbar=0','location=0','status=0','menubar=0,','scrollbars=yes','resizable=yes','width=100','height=100'); return false;">
<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span>
</a>
</div>
【问题讨论】:
-
我尝试使用 'scrollbars=1','resizable=1' 但没有任何变化..请帮助...谢谢
-
'location=0','status=0','menubar=0,','scrollbars=yes','resizable=yes','width=100','height=100'应该是一个字符串,类似于'location=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=100,height=100'。 -
很遗憾没有工作。