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

求助各位大神关于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')

    评论

报告相同问题?

悬赏问题

  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 关于#python#的问题:自动化测试