zhangchenhuan123 2015-06-06 02:10 采纳率: 30%
浏览 1762

求助各位大神关于javascript在chrome游览器的显示的问题

各位大神 我在页面上编辑了用javascript编辑了窗口属性也就是windows.open,新的
窗口打开后,像工具条,菜单栏和resizable这些都没显示出来,求指点;

 <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <script type="text/javascript" language="javascript">
          function openwindow() {
              window.open("HTMLPage.htm", "图片窗口", "toolbars=1,scrollbars=1,location=1,statusbars=1,menubars=1,resizable=1,width=500,height=250")
           }
      </script>
      <style type="text/css">
      body{background-image:(image/IMG_2796.JPG);}
      </style>
</head>
<body>
    <form id="form1" runat="server">
      <asp:Button ID="btnshow" runat="server" Text="点击" OnClientClick="openwindow()" />
    </form>
</body>
</html>

HTMLPage.htm页面弹出来的效果
图片说明

  • 写回答

7条回答 默认 最新

  • OldBiuBang 2015-06-06 02:14
    关注

    要不,你写成这样试试:
    window.open('HTMLPage.htm', '图片窗口', 'toolbars=yes,location=yes,scrollbars=1,location=1,statusbars=1,menubars=1,resizable=1,width=500,height=250')

    评论

报告相同问题?